On 1 Aug 2009, at 10:19, Tekin Suleyman wrote: > I've been trying to update some of my long running cron jobs to use > lockrun after reading about it here (cheers Will), but I can't get > it to behave. Running: > > /usr/local/bin/lockrun --lockfile=/tmp/file.lockrun -- cd /path/to/ > app/ && rake some:rake:task > > Gives me "No Rakefile found" errors. Looks like for some reason, it > isn't changing to the correct directory before it executes the rake > task. Any suggestions?
Put the cd first and it should work fine: cd /path/to/app/ && /usr/local/bin/lockrun --lockfile=/tmp/ file.lockrun -- rake some:rake:task Will. -- Will Jessop Super Shiny Robot Limited - Professional web design and development t: 07939 547 962 w: http://supershinyrobot.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "NWRUG" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nwrug-members?hl=en -~----------~----~----~----~------~----~------~--~---
