Ich versuche seit einger Zeit vergeblich rake per crontab zu starten.
session.rake liegt in lib/tasks
im Crontab sind pfadverweise auf bin sbin etc.
per befehlszeile läuft rake sessions einwandfrei
in der cron Anweisung steht
cd /home/app/www.domain.de/current; && RAILS_ENV=production rake
sessions:prune
ich erhalte:
>> /bin/sh: -c: line 0: syntax error near unexpected token `&&'
>> /bin/sh: -c: line 0: `/usr/local/bin/softlimit -m 50000000 -o 100 -
p 80 -t 180 cd /home/app/www.domain.de/current; &&
RAILS_ENV=production rake sessions:prune'
cd /home/app/www.domain.de/current; RAILS_ENV=production rake
sessions:prune
>> softlimit: fatal: unable to run cd: file does not exist
>> /bin/sh: rake: command not found
cd /home/app/www.domain.de && RAILS_ENV=production rake sessions:prune
>> softlimit: fatal: unable to run cd: file does not exist
ohne && mit ; oder ohne nix hülft.
Jemand Idee was ich eingeben muß ?
Gruß
Werner Laude
Lindenburger Allee 22 - 50931 Köln
0221.8805 635
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.webagentur-laude.de
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug