<<< Date Index >>>     <<< Thread Index >>>

problem with external programs




I am having a strange problem with mutt. I have configured mutt to use "less" as the external pager, vim as the editor and "lynx" to view html files. Neither of these options work for me. What appears to be happening is that the temporary file (tempfile) is getting deleted before the external program can use it or the tempfile name is incorrect. For example the tempfile is "mutt-pc1-24395-68" but the external program wants "mutt-pc1-24395-69". I have discovered this by putting some debugging statements in system.c and and command.c. It's strange that the builtin pager works OK though.

In more detail one of the changes I made is that I have changed mutt_system a bit to:

    err_ret = execl (EXECSHELL, "sh", "-c", cmd, NULL);
    if( err_ret == -1 )
    {
        sprintf( buff, "Error executing \"%s\"", cmd );
        perror(buff);
    }

When I run mutt invoking vim I get.
Error executing "/usr/bin/vim '/tmp/mutt-pc1-24854-1'": No such file or directory

I am using kernel 2.6.8-rc3, gcc version 3.4.2 20040818 (prerelease) and glibc 2.3.3

Fred