Re: running fetchmail from mutt in the background
Am 2006-04-30 22:04:54, schrieb cga2000:
> I have bound the G key to the following command in my .muttrc:
>
> "!fetchmail -v -k -m '/usr/bin/procmail -Yf- &'\n"
>
> I was hoping that the '&' would cause this process to execute in the
> background but it seems that this is not working as I expected:
>
> fetchmail gives me some errors and apparently does not fetch anything.
>
> I got rid of the '&' and everything works fine but I was wondering if
> there was any way I could run fetchmail on demand in the background.
Write a script
----8<--------------------------------------------
#!/bin/bash
function()
{
fetchmail -v -k -m "/usr/bin/procmail -Yf-"
}
function &
disown
----8<--------------------------------------------
then write a Macro which call
macro generic <F2> "!THE_SCRIPT\n"
Greetings
Michelle Konzack
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)