okay have bash script downloads web page, , use python pulls data out of downloaded page. bash script along lines of
#!/bin/bash html_file="web_page.html" wget -o /home/michael/documents/cs288/homework7/web_page.html http://markets.usatoday.com/custom/usatoday-com/html-mktscreener.asp?exchange=13\&screen=1 python hw_7_2.py $html_file
now, when execute bash script command line runs fine, wget runs , python script executes, when set cron job wget run python script never executes. have not set cron jobs think may issue. crontab file looks like
shell=/bin/bash path=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin * * * * * michael /home/michael/documents/cs288/homework7/usatoday_runner.sh
try replace cron line :
* * * * * michael /home/michael/documents/cs288/homework7/usatoday_runner.sh > /tmp/why_is_this_failing.log 2>&1
the answer may in /tmp/why_is_this_failing.log
Comments
Post a Comment