Re: [sillent1...@gmail.com: Re: vi and mutt problem]
I ran strace and this is the last screen that I could copy/paste: read(4, livered-To:\nanchor 1 Content-Typ..., 100) = 100 read(4, ontent-Description: X-Mailer: In..., 100) = 100 read(4, o: User-Agent: Bcc: Fcc: Followu..., 100) = 100 read(4, comment From\nfont keyword From\nm..., 100) = 100 read(4, .pe...@tu-clausthal.de)\nlanguage..., 100) = 100 close(4) = 0 write(1, \0337\r\33[K\0337\33[? ) = 32 ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = 0 lseek(3, 28672, SEEK_SET) = 28672 write(3, \\\..., 2048) = 2048 lseek(3, 24576, SEEK_SET) = 24576 write(3, ied?\ [MODIFIED]\)(!edited?\ [NO..., 2048) = 2048 lseek(3, 18432, SEEK_SET) = 18432 write(3, \1\0\0\0\0\0\0\0\0\0\0\0\v\0\340\251Elvis messages\0\0..., 2048) = 2048 lseek(3, 22528, SEEK_SET) = 22528 write(3, \0\0\n\0003\7\37\0\f\0\340\0\1\0\0\0\0\0\0\0\0\0\0\0\0..., 2048) = 2048 lseek(3, 20480, SEEK_SET) = 20480 write(3, # This is a sample \elvis.msg\ f..., 2048) = 2048 lseek(3, 59392, SEEK_SET) = 59392 write(3, \2\0\0\0\0\0\0\0\0\0\0\0\0\0\21BElvis message qu..., 2048) = 2048 lseek(3, 61440, SEEK_SET) = 61440 write(3, \1\0\0\0\0\0\0\0\0\0\0\0 \0\230TElvis custom ini..., 2048) = 2048 lseek(3, 65536, SEEK_SET) = 65536 write(3, \0\0\37\0S\4,\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0..., 2048) = 2048 lseek(3, 63488, SEEK_SET) = 63488 write(3, set ruler\nset showmatch\nset show..., 2048) = 2048 lseek(3, 4096, SEEK_SET)= 4096 write(3, \1\0\0\0\0\0\0\0\0\0\0\0\\0%3Elvis ex history..., 2048) = 2048 lseek(3, 69632, SEEK_SET) = 69632 write(3, \0\0!\0\3\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0..., 2048) = 2048 lseek(3, 55296, SEEK_SET) = 55296 write(3, reading /tmp/foo\n\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0..., 2048) = 2048 lseek(3, 67584, SEEK_SET) = 67584 write(3, :q\n\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0..., 2048) = 2048 lseek(3, 57344, SEEK_SET) = 57344 write(3, \0\0\33\0\21\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0..., 2048) = 2048 lseek(3, 53248, SEEK_SET) = 53248 write(3, \1\0\0\0\0\0\0\0\0\0\0\0\34\0\./tmp/strace\0\0\0\0\0..., 2048) = 2048 lseek(3, 0, SEEK_SET) = 0 read(3, \255\336\0\2\3\n\0\0\0\10\0\0\1\0\2\0\3\0\4\0\t\0\r\0\20..., 2048) = 2048 lseek(3, 0, SEEK_SET) = 0 write(3, \255\336\0\2\0\0\0\0\0\10\0\0\1\0\2\0\3\0\4\0\t\0\r\0\20..., 2048) = 2048 close(3)= 0 unlink(/var/tmp/elvis1.ses) = 0 exit_group(1) = ? Process 2563 detached From: Dmitry Ulyanov sillent1...@gmail.com Subject: Re: vi and mutt problem To: mutt-users@mutt.org Date: Mon, 22 Mar 2010 23:17:33 +0300 User-Agent: Mutt/1.5.20 (2009-06-14) vi /tmp/foo correctly ending? if not, execute strace vi /tmp/foo and show output -- Best regards, Dmitry Ulyanov Sat, Mar 20, 2010 at 12:39:07PM -0600, Michael ??(??): On Sat, Mar 20, 2010 at 10:03:11AM -0700, Michael Elkins wrote: On Fri, Mar 19, 2010 at 09:46:17AM -0600, Michael wrote: This is on an Slackware system. I only have root my regular user accounts. 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. Is vi == elvis on your system? yes, sorry for not making that clear No matter what, I get the same error. I check the /tmp directory and see the two mutt files and I think the error always relates to message no sent. Any help? What program/version is /bin/sh on your system? Mutt invokes the editor as: /bin/sh -c 'vi /tmp/foo' One thing you might try is to run that command via your shell and print out the exit code (in bash you can echo $?). Normally this should be 0 if no error occurred. me ran your command followed by echo $? and it returned a 1 fwiw- I just tried running this on openbsd and it returned the 0. Thanks for your help. Michael E. -- Estimated amount of glucose used by an adult human brain each
Re: [sillent1...@gmail.com: Re: vi and mutt problem]
On Fri, Mar 26, 2010 at 09:54:26AM -0600, Michael wrote: I ran strace and this is the last screen that I could copy/paste: ... exit_group(1) = ? Mutt is reporting an error occured because the proces is exiting with status code 1 instead of 0. You'd have to figure out why the editor is doing that. As a temporarily workaround if you are certain that Elvis is working properly, you could create a wrapper shell script which will return 0 and have Mutt use the script instead of directly invoking Elvis. me pgpqdaLneRFx7.pgp Description: PGP signature
Re: [sillent1...@gmail.com: Re: vi and mutt problem]
On Fri, Mar 26, 2010 at 09:04:33AM -0700, Michael Elkins wrote: On Fri, Mar 26, 2010 at 09:54:26AM -0600, Michael wrote: I ran strace and this is the last screen that I could copy/paste: ... exit_group(1) = ? Mutt is reporting an error occured because the proces is exiting with status code 1 instead of 0. You'd have to figure out why the editor is doing that. As a temporarily workaround if you are certain that Elvis is working properly, you could create a wrapper shell script which will return 0 and have Mutt use the script instead of directly invoking Elvis. me Thanks Michael. Well, I just thought of something else to try and this is what I did: since (in Slackware) vi is linked to elvis, I used vim to create a file in /tmp. I then ran echo $? and it returned 0. I then set my editor to vim in my .muttrc and created and sent a message using vim. No problems whatsoever. Problem is with user/elvis and not with mutt :) Thanks to all for your help. I'll ask help on the Slackware forums and if anybody cares, I'll post the fix. Michael E. -- Estimated amount of glucose used by an adult human brain each day, expressed in MMs: 250 - Harper's Index
Re: [sillent1...@gmail.com: Re: vi and mutt problem]
I found the problem. I had an .exrc file. I renamed it and vi ran with no problems. I even set my mutt editor as vi, created and sent an email, and again, no problems. All is well now :) Thanks to all for your help, but also sorry for the noise since it wasn't mutt related at all. Michael E. On Fri, Mar 26, 2010 at 12:22:13PM -0600, Michael wrote: On Fri, Mar 26, 2010 at 09:04:33AM -0700, Michael Elkins wrote: On Fri, Mar 26, 2010 at 09:54:26AM -0600, Michael wrote: I ran strace and this is the last screen that I could copy/paste: ... exit_group(1) = ? Mutt is reporting an error occured because the proces is exiting with status code 1 instead of 0. You'd have to figure out why the editor is doing that. As a temporarily workaround if you are certain that Elvis is working properly, you could create a wrapper shell script which will return 0 and have Mutt use the script instead of directly invoking Elvis. me Thanks Michael. Well, I just thought of something else to try and this is what I did: since (in Slackware) vi is linked to elvis, I used vim to create a file in /tmp. I then ran echo $? and it returned 0. I then set my editor to vim in my .muttrc and created and sent a message using vim. No problems whatsoever. Problem is with user/elvis and not with mutt :) Thanks to all for your help. I'll ask help on the Slackware forums and if anybody cares, I'll post the fix. Michael E. -- Estimated amount of glucose used by an adult human brain each day, expressed in MMs: 250 - Harper's Index -- Estimated amount of glucose used by an adult human brain each day, expressed in MMs: 250 - Harper's Index
Re: vi and mutt problem
vi /tmp/foo correctly ending? if not, execute strace vi /tmp/foo and show output -- Best regards, Dmitry Ulyanov Sat, Mar 20, 2010 at 12:39:07PM -0600, Michael написал(а): On Sat, Mar 20, 2010 at 10:03:11AM -0700, Michael Elkins wrote: On Fri, Mar 19, 2010 at 09:46:17AM -0600, Michael wrote: This is on an Slackware system. I only have root my regular user accounts. 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. Is vi == elvis on your system? yes, sorry for not making that clear No matter what, I get the same error. I check the /tmp directory and see the two mutt files and I think the error always relates to message no sent. Any help? What program/version is /bin/sh on your system? Mutt invokes the editor as: /bin/sh -c 'vi /tmp/foo' One thing you might try is to run that command via your shell and print out the exit code (in bash you can echo $?). Normally this should be 0 if no error occurred. me ran your command followed by echo $? and it returned a 1 fwiw- I just tried running this on openbsd and it returned the 0. Thanks for your help. Michael E. -- Estimated amount of glucose used by an adult human brain each day, expressed in MMs: 250 - Harper's Index
Re: vi and mutt problem
Sorry for not making myself clear. It ended in 1. Been rather sick and not on that machine till maybe tomorrow, and will execute the strace. Thank-you for your help Mike On Mon, Mar 22, 2010 at 11:17:33PM +0300, Dmitry Ulyanov wrote: vi /tmp/foo correctly ending? if not, execute strace vi /tmp/foo and show output -- Best regards, Dmitry Ulyanov Sat, Mar 20, 2010 at 12:39:07PM -0600, Michael ??(??): On Sat, Mar 20, 2010 at 10:03:11AM -0700, Michael Elkins wrote: On Fri, Mar 19, 2010 at 09:46:17AM -0600, Michael wrote: This is on an Slackware system. I only have root my regular user accounts. 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. Is vi == elvis on your system? yes, sorry for not making that clear No matter what, I get the same error. I check the /tmp directory and see the two mutt files and I think the error always relates to message no sent. Any help? What program/version is /bin/sh on your system? Mutt invokes the editor as: /bin/sh -c 'vi /tmp/foo' One thing you might try is to run that command via your shell and print out the exit code (in bash you can echo $?). Normally this should be 0 if no error occurred. me ran your command followed by echo $? and it returned a 1 fwiw- I just tried running this on openbsd and it returned the 0. Thanks for your help. Michael E. -- Estimated amount of glucose used by an adult human brain each day, expressed in MMs: 250 - Harper's Index -- Estimated amount of glucose used by an adult human brain each day, expressed in MMs: 250 - Harper's Index
Re: vi and mutt problem
On Fri, Mar 19, 2010 at 09:46:17AM -0600, Michael wrote: This is on an Slackware system. I only have root my regular user accounts. 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. Is vi == elvis on your system? No matter what, I get the same error. I check the /tmp directory and see the two mutt files and I think the error always relates to message no sent. Any help? What program/version is /bin/sh on your system? Mutt invokes the editor as: /bin/sh -c 'vi /tmp/foo' One thing you might try is to run that command via your shell and print out the exit code (in bash you can echo $?). Normally this should be 0 if no error occurred. me
Re: vi and mutt problem
On Sat, Mar 20, 2010 at 10:03:11AM -0700, Michael Elkins wrote: On Fri, Mar 19, 2010 at 09:46:17AM -0600, Michael wrote: This is on an Slackware system. I only have root my regular user accounts. 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. Is vi == elvis on your system? yes, sorry for not making that clear No matter what, I get the same error. I check the /tmp directory and see the two mutt files and I think the error always relates to message no sent. Any help? What program/version is /bin/sh on your system? Mutt invokes the editor as: /bin/sh -c 'vi /tmp/foo' One thing you might try is to run that command via your shell and print out the exit code (in bash you can echo $?). Normally this should be 0 if no error occurred. me ran your command followed by echo $? and it returned a 1 fwiw- I just tried running this on openbsd and it returned the 0. Thanks for your help. Michael E. -- Estimated amount of glucose used by an adult human brain each day, expressed in MMs: 250 - Harper's Index