procmail
[Top] [All Lists]

using the watch command

2010-02-25 12:17:30
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.
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail
<Prev in Thread] Current Thread [Next in Thread>
  • using the watch command, matias kaukonen <=