Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'waking from cron' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
waking from cron
Authored by: sjmills on Oct 02, '03 10:09:24AM

I installed the wakeonlan perl script, did chmod +x on it, and rehash'd. I then added entries into my crontab (on the G5 that's always awake) to wake the 2 G4s in the house 10 minutes before the daily job runs. It looks like they didn't wake up, because the date on daily.log is still last month. Here's my entry in crontab:

5 3 * * * wakeonlan xx:xx:xx:xx:xx:xx yy:yy:yy:yy:yy:yy

This works if I enter it manually on the command line. Any ideas? I have other cron tasks that I know have run and are entered in much the same way.



[ Reply to This | # ]
waking from cron
Authored by: sjmills on Oct 02, '03 10:32:17AM

Arg. Never mind. Seems that cron doesn't know about ~/bin. Does that seem strange?



[ Reply to This | # ]
cron don't know ~
Authored by: kfaulhaber on Oct 02, '03 10:18:02PM

Unless you installed it in your own username's crontab, cron runs the task as root, and ~/bin would be root's ~/bin. You should use the absolute /path/to/whatever in cron.



[ Reply to This | # ]