Quote:
Originally Posted by Quarkrad
Roasted - thanks; I followed your instructions and I have got it to work - brilliant. As I use my PC all sorts of times I would really like to run this script (automatically) at shutdown. I am playing with 'Scheduled Tasks' which I believe is based on cron but there is not a 'shutdown' option. Any help on getting scripts to run on shutdown would be much appreciated.
|
Been googling to no end and it seems that no matter how you choose to shutdown your machine all roads lead to the shutdown command which isn't nice about killing the running process'. How about turning the problem around; make a script that runs your backup routine and then shuts down the computer.
Code:
#!/bin/bash
backuproutine.sh && shutdown -P now
Barrie