BINGO! It's working perfectly and I can't thank you enough.
At first nothing, it wasn't working with;
Code:
44 17 * * * sudo /home/dave/hibernate.sh > /dev/pts/0
I then just tryed:
Code:
sudo bash /home/dave/hibernate.sh
An like before it worked in bash but not crontab.
So what the heck I changed:
Code:
44 17 * * * sudo /home/dave/hibernate.sh > /dev/pts/0
to
Code:
44 17 * * * sudo bash /home/dave/hibernate.sh
BAM! works like a charm. Below is the info you requested.
Code:
$ ls -al ~ | grep hibernate
-rwx------ 1 root root 528 Sep 5 17:21 hibernate_cron.tab
-rw-rw-r-- 1 dave dave 0 Sep 4 18:03 hibernate_cron.tab~
-rwxrwxr-x 1 dave dave 929 Sep 2 07:07 hibernateonnetwork.py~
-rw-rw-r-- 1 dave dave 0 Aug 31 17:04 hibernate.py~
-rwxrwxr-x 1 dave dave 963 Aug 31 17:52 hibernateserver.py~
-rwx------ 1 root root 1803 Sep 5 18:20 hibernate.sh
-rwxrwxr-x 1 dave dave 1259 Sep 3 21:30 hibernate.sh~
-rwxrwxr-x 1 dave dave 929 Sep 2 07:06 hibernatetest.py~
Bookmarks