Toen wij Fradley Bradley kietelden, kwam er dit uit:
When an email is received for incoming(_at_)exampledomain(_dot_)com I am
trying
to execute a webpage and dump the results to a local file using the
lynx browser however it just does not want to execute my command. The
result is always a blank file.
When I execute '/usr/bin/lynx -dump http://www.yahoo.com.au >
/home/tmp/proctest' from the linux command line it works as expected
but within procmail.... nothing.
Here is my receipe... any help much appreciated.
SHELL=/bin/sh
PATH=$HOME/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
:0
* ^TO_incoming(_at_)domain\(_dot_)com
|/usr/bin/lynx -dump http://www.yahoo.com.au > /home/tmp/proctest
Try:
SHELL = '/bin/sh'
LOG = "$HOME/proctest.log"
VERBOSE = 'yes'
:0
* ^TO_incoming(_at_)domain\(_dot_)com
|/usr/bin/lynx -dump http://www.yahoo.com.au > "$HOME/proctest.html"
and check the log-file.
--
Grtz, Ruud
____________________________________________________________
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