Question

I'm using Aptana Cloud without root access.

WORKS:

* * * * * /usr/sfw/bin/wget -qO- 'http://myproject.aptanacloud.com/myproject/myphp.php' | /bin/mail mymail@mymail.com

DOESN'T WORK!:

* * * * * /usr/sfw/bin/wget -qO- 'http://myproject.aptanacloud.com/myproject/myphp.php?param1=blog%2frss2.xml' | /bin/mail mymail@mymail.com

I tried either unsuccessfully url with quotes, double quotes or without quotes. Any idea?

Thanks!

Was it helpful?

Solution

Just out of curiosity: have you tried doing it without the %2f and using a straight forward slash instead? Maybe it's the encoding there that's breaking something.

OTHER TIPS

From:

man 5 crontab

Percent-signs (%) in the command, unless escaped with backslash (), will be changed into newline characters, and all data after the first % will be sent to the command as standard input.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top