crontab example line with shell export and output to logfile

(export PATH=$PATH:/usr/local/bin; \
     /path/to/myscript.sh) >> /home/www/log/publish.log 2>&1

Leave a Reply