Re: fetchmail and watch command

2010-02-11 Thread Armelius Cameron
On Thursday 11 February 2010 14:36:50 matias kaukonen wrote: > What I'm trying to do is enable the watch command to run a prog named > fetchmail.run. > Is there some technique to fix this that's concise and easy to understand? Why do you want to do this ? Fetchmail can be run as daemon that will

Re: fetchmail and watch command

2010-02-11 Thread Chris Tyler
On Thu, 2010-02-11 at 14:36 -0500, matias kaukonen wrote: > What I'm trying to do is enable the watch command to run a prog named > fetchmail.run. > The following command string does not work when run in the background > (it > works ok from the foreground): > > watch -n 30 fetchmail.run > /dev/nul

fetchmail and watch command

2010-02-11 Thread matias kaukonen
What I'm trying to do is enable the watch command to run a prog named fetchmail.run. The following command string does not work when run in the background (it works ok from the foreground): watch -n 30 fetchmail.run > /dev/null & fetchmail.run if ["`ps --User matias | grep fetchmail`" == ""]; the