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


Click here to return to the 'A simple bash script to run system maintenance tasks' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A simple bash script to run system maintenance tasks
Authored by: tjj on Dec 20, '06 01:21:28PM
Nothing wrong with scripting for the sake of scripting, if you're learning;) What irritates me with the launchd jobs is, that they are marred by sleeping the machine.
xxx:~ xxx$ date; ls -al /var/log/*.out; ls -alu bin/rdiff-backup.sh 
Wed Dec 20 21:15:01 CET 2006
-rw-r--r--   1 root  wheel  51797 Dec 17 13:46 /var/log/daily.out
-rw-r--r--   1 root  wheel    251 Nov  8 23:25 /var/log/monthly.out
-rw-r--r--   1 root  wheel    254 Oct 28 15:49 /var/log/weekly.out
-rwxr-xr-x   1 xxxx  xxxx  1393 Dec 19 20:30 bin/rdiff-backup.sh
The last line is a back-up script that is also run by launchd. Once in a while I do a
sudo periodic daily weekly monthly
in one go.

[ Reply to This | # ]