Re: command isn't working in crontab

2012-09-28 Thread Wilko Fokken
On Sat, Sep 29, 2012 at 01:35:04AM +0200, Tomas Hulata wrote: > Hello, below command works in command line but not as a cronjob can > someone explain me why? > > 23 58 * * * rootcd /some_path/;mkdir "CAM1-$(date +%d.%m.%Y)";mv > ./CAM1/*.* ./"CAM1-$(date +%d.%m.%Y)"/;mkdir "CAM2-$(date +

Re: command isn't working in crontab

2012-09-28 Thread Tomas Hulata
double quotes are OK but % is not, it is special character in crontab , I have found it here http://en.wikipedia.org/wiki/Cron On 29.09.2012 02:05, Neal Murphy wrote: On Friday, September 28, 2012 07:35:04 PM Tomas Hulata wrote: Hello, below command works in command line but not as a cronjob c

Re: command isn't working in crontab

2012-09-28 Thread Neal Murphy
On Friday, September 28, 2012 07:35:04 PM Tomas Hulata wrote: > Hello, below command works in command line but not as a cronjob can > someone explain me why? > > 23 58 * * * rootcd /some_path/;mkdir "CAM1-$(date +%d.%m.%Y)";mv > ./CAM1/*.* ./"CAM1-$(date +%d.%m.%Y)"/;mkdir "CAM2-$(date +%d.

command isn't working in crontab

2012-09-28 Thread Tomas Hulata
Hello, below command works in command line but not as a cronjob can someone explain me why? 23 58 * * * rootcd /some_path/;mkdir "CAM1-$(date +%d.%m.%Y)";mv ./CAM1/*.* ./"CAM1-$(date +%d.%m.%Y)"/;mkdir "CAM2-$(date +%d.%m.%Y)";mv ./CAM2/*.* ./"CAM2-$(date +%d.%m.%Y)"/ I want to move f