Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
1. vi /hibernate
2. Put the following lines in this file:
cd /etc/acpi
./hibernate.sh
3. Save the file and exit
4. chmod 755 /hibernate (Make it 777 if you want to make it available for all
5. In crontab put the following line 50 22 * * * /hibernate
And the reason I can think of why you getting that message is because the path you have given in crontab is unable to locate the hibernate.sh file. I think the best way to work with cron is to create script and automate using cron.
I hope this helps.
Last edited by T3RM1NVT0R; 06-28-2011 at 04:23 PM.
Given that cron has a minimal env eg $PATH, maybe it's a cmd inside the script that has the issue? Ensure you are using the full path to all cmds & files referenced in the script.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.