LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-16-2010, 10:35 AM   #1
multios
Member
 
Registered: Mar 2006
Location: Homer, Alaska USA
Distribution: OpenBSD, FreeBSD, Slackware64-current
Posts: 276

Rep: Reputation: 58
[SOLVED] minor problem with vi (elvis) and mutt


When I am finished writing an email, I get something similar at bottom of my mutt screen:
Error running "vi '/tmp/mutt-MarahIII-1000-2799-33'"!

I have tried using:
set editor="/usr/bin/elvis"
set editor="vi"
set editor="/usr/bin/vi"
and even commenting out the line all together.

No matter what, I get the same "error".]
This is on my 12.2 system.

Once the error shows, the screen pauses for about 2 seconds and then goes on the the send screen.
Any ideas what is causing this? Yes, I have elvis installed and vi is soft-linked to elvis in /usr/bin.

Thanks.

Last edited by multios; 03-26-2010 at 02:02 PM.
 
Old 03-16-2010, 10:45 AM   #2
masinick
Member
 
Registered: Apr 2002
Location: Greenville, SC
Distribution: Debian, antiX, MX Linux
Posts: 636
Blog Entries: 16

Rep: Reputation: 104Reputation: 104
Well, the things that come to mind all have to do with access. Typically, when a file is located in the /tmp directory, the expectation is that it can be readable, writable, and executable, and access rights can readily be modified. Typicallly the file protection scheme for /tmp is drwxrwxrwx, that is, the directory is readable, writable, and executable by the owner of the file, the group owning the directory, and others as well.

This would only NOT be the case if these common access rights were modified - or if for some strange reason the /tmp filesystem is mounted in a read only mode.

There could be other related reasons for the issue, but those are the ones that come to mind first. Check out both of these possibilities before fiddling with environment variables; I do not see them as the source of the problem; I see this as an access rights issue, unless I am completely mistaken.
 
Old 03-16-2010, 11:29 AM   #3
multios
Member
 
Registered: Mar 2006
Location: Homer, Alaska USA
Distribution: OpenBSD, FreeBSD, Slackware64-current
Posts: 276

Original Poster
Rep: Reputation: 58
yes, /tmp is drwxrwxrwx
I can write to it.
Thanks.
 
Old 03-16-2010, 03:32 PM   #4
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
Actually /tmp should be drwxrwxrwt (or 1777) with the sticky bit set.
 
Old 03-16-2010, 11:33 PM   #5
multios
Member
 
Registered: Mar 2006
Location: Homer, Alaska USA
Distribution: OpenBSD, FreeBSD, Slackware64-current
Posts: 276

Original Poster
Rep: Reputation: 58
well, set the sticky bit, quit and restarted mutt, wrote an email, and got the same thing
/tmp is now: drwxrwxrwt

sorry for late reply. Have a bad flu
 
Old 03-17-2010, 12:31 AM   #6
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
Have you tried clearing all the files from /tmp/ ?
 
Old 03-17-2010, 07:21 AM   #7
multios
Member
 
Registered: Mar 2006
Location: Homer, Alaska USA
Distribution: OpenBSD, FreeBSD, Slackware64-current
Posts: 276

Original Poster
Rep: Reputation: 58
yes, just tried. I don't think I needed to, but even rebooted and then tried creating email with mutt. Same thing.

Thanks for your help.

I have Debian on 2nd hd. I'll boot into that and see if I get the same error.
 
Old 03-17-2010, 07:46 AM   #8
multios
Member
 
Registered: Mar 2006
Location: Homer, Alaska USA
Distribution: OpenBSD, FreeBSD, Slackware64-current
Posts: 276

Original Poster
Rep: Reputation: 58
booted Debian and sent an email with no problem, so rebooted Slackware, logged in as root, and created email with mutt. No problems (I hit "q" before sending it), logged out, logged in as regular user, and I got the error again.
Something wrong with my normal user account.
 
Old 03-18-2010, 11:38 PM   #9
jostber
Member
 
Registered: Jul 2001
Location: Skien, Norway
Distribution: Slackware Current 64-bit
Posts: 543

Rep: Reputation: 178Reputation: 178
What about setting tmpfile in your .muttrc to:

set tmpdir="/home/username/tmp"
 
Old 03-19-2010, 01:25 PM   #10
multios
Member
 
Registered: Mar 2006
Location: Homer, Alaska USA
Distribution: OpenBSD, FreeBSD, Slackware64-current
Posts: 276

Original Poster
Rep: Reputation: 58
I just posted my question on the mutt maillist also.
I have noticed that with mutt, 2 files are created in the /tmp directory. First one seems to be created when "m" or "r" is pressed to start an email. 2nd file is created when the editor screen is shown. The email is sent using the "edited" file and the error is for the 1st file.
I'll have to check this on other OS to see if it is the same, or perhaps this is the problem itself (2 files).
Overloaded with medication so I'm probably not being very clear
 
Old 03-20-2010, 10:16 AM   #11
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 687
Blog Entries: 1

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Hi multios

Using slack 12.2 also, when I
set editor="/usr/bin/elvis"
in .muttrc works for me, *but* I have this variable set:
SESSIONPATH
to point to use a directory in $HOME to hold temporary files:
export SESSIONPATH=$HOME/.elvis

I would also verify $TERM to make sure it look OK.
see man elvis

Jack
 
Old 03-26-2010, 01:34 PM   #12
multios
Member
 
Registered: Mar 2006
Location: Homer, Alaska USA
Distribution: OpenBSD, FreeBSD, Slackware64-current
Posts: 276

Original Poster
Rep: Reputation: 58
Here is something I just tried and it worked.
In my .muttrc, I set my editor to vim. I then created and sent an email using vim, and there were no errors/problems.
I then used vim to write a file to /tmp. I then typed "echo $?" and it returned 0
Using vi (elvis), I did the same and I got an 1 for "echo $?".
Evidently the problem is between my normal user and vi/elvis.
Any idea on where to look or what to look for?
 
Old 03-26-2010, 02:01 PM   #13
multios
Member
 
Registered: Mar 2006
Location: Homer, Alaska USA
Distribution: OpenBSD, FreeBSD, Slackware64-current
Posts: 276

Original Poster
Rep: Reputation: 58
[SOLVED] minor problem with vi (elvis) and mutt

After reading "man elvis", I looked at my home directory and found an .exrc file. I renamed that and now vi works fine as standalone editor or as set editor in mutt.
Some time ago, I was studying "ex", so maybe I downloaded the file? I don't remember doing that, but the file is there, so....

Thanks to all for your help any way!

m
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mutt experts - Mutt won't use the Maildir I specify in .muttrc moistTowelette Debian 2 08-24-2009 08:04 AM
Minor problem SubaruKid Linux - Newbie 9 12-03-2007 11:19 PM
Minor mouse problem don_dimo Linux - Software 2 03-17-2005 01:36 AM
Minor Keyboard Problem ! zetox Linux - Newbie 3 10-17-2003 07:06 AM
Minor Problem PlanetNEO Linux - Networking 3 12-08-2002 04:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration