View Single Post
Old 06-16-2011, 08:44 PM   #15
rkomar
Wizard
rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.
 
Posts: 3,058
Karma: 18821071
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
Quote:
Originally Posted by niroma View Post
In the debug version I added sleep 5 to the beginning and that command seems to be run as well as the echo's, but not the wget.

Might it be related to access rights or the user that calls the script?
It might be a permissions problem. Try to delete all previously generated files (including the log file) before running the script. If you were a different user when logged in via rsh, it could keep the normal 'reader' user from overwriting existing files.

Also, try using your freshly installed version of wget to download the newspaper if it works in getting the HTML file in the first line.

Finally, I'm not familiar with '&>' in sh scripts. Are you sure you used that when logged in via rsh?
rkomar is offline   Reply With Quote