views:

696

answers:

2

Hi, I'm using Aptana Cloud without root access.

WORKS:

* * * * * /usr/sfw/bin/wget -qO- 'http://myproject.aptanacloud.com/myproject/myphp.php' | /bin/mail [email protected]

DOESN'T WORK!:

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

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

Thanks!

+1  A: 

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.

Narcissus
hum.. true I will try right now
Veilkrand
As you predicted url encoding was breaking something inside crontab. Even inside quotes...Thanks
Veilkrand
A: 

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.

sevenever