0

My site is hosted by a hosting company which does not allow me to access the normal cron logs. I want to redirect the output and error messages to a log file in my user space. My cron commmand is
/usr/bin/curl -s "http://my/path/to/updateWebsite.php" > dev/null

I want to send the output echos and error messages to my/path/to/updateWebsite.log . Tutorials I have looked at indicate to use
/usr/bin/curl -s "http://my/path/to/updateWebsite.php" > "http://my/path/to/updateWebsite.log" 2>&1
but I cannot make this work. Can someone help me with the correct syntax?

3
Contributors
2
Replies
15
Views
3 Years
Discussion Span
Last Post by L7Sqr
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.