fetchmail and watch command
chris at tylers.info
Thu Feb 11 19:55:49 UTC 2010
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
> The following command string does not work when run in the background
> works ok from the foreground):
> watch -n 30 fetchmail.run > /dev/null &
> if ["`ps --User matias | grep fetchmail`" == ""]; then
> /usr/bin/fetchmail -f ~/.fetchmailrc --mda "procmail -f %F"
> > /dev/null 2>&1; fi
> Is there some technique to fix this that's concise and easy to
watch is probably stopping on signal 19 because of tty access.
Seems to me that you just want to run this command every 30 seconds. Why
not just put a loop in the fetchmail.run script?
while sleep 30
More information about the users