fetchmail and watch command
matias kaukonen
matias.364 at gmail.com
Thu Feb 11 19:36:50 UTC 2010
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`" == ""]; 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 understand?
thx.,
matias.
~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/users/attachments/20100211/4388b52d/attachment.html
More information about the users
mailing list