cron tab, what do you use it for?
We use cron tabs at work to schedule various scripts, but what would I use this for at home? I know I can use it to schedule a backup or that sort of thing.
But what I'm curious about is what everyone uses cron tabs for. What do you schedule on your home computer? This is just a curiosity type of thing. I'm also wondering if I'm missing something. Could I be making better use of my system? Thanks F_M |
I use it to sync my portage tree. Logroller uses it for me. I also plan on using it to run "updatedb" on a regular basis, but I haven't got to it yet. There are a lot of other things you can do with it I have no need for as of right now. On the same hand though there a lot of things I can do with it I just don't right now.
|
Some of the processes in my crontab (most run nightly):
Download new patches from Slackware mirror Download various podcasts Download new virus definition files Run virus scanner The above processes also send an email if any action was taken (file downloaded, virus found, etc.) or any errors occurred. |
I don't have any of mine send me e-mail. I run them on good faith :-), that is a good idea though.
|
My lawn sprinkler system runs via cron.
Some of my outside lights turn on via cron based on sunset times. |
Never thought about the podcasts, good idea.
And michaelk, do you have your house automated? |
Yes, its still a project in work.
|
Currently, I have cron jobs set up to update the locate database and do log rotation (these were already set up in Slack, I just had to change the settings so they'd run at a more convenient time). I'll set one up for removing temp files, too.
|
I found a wiki article on removing the temp files using cron on the Gentoo Wiki. How safe is that? Is there something I need to watch out for when removing temp files?
|
I was also wondering about how safe it is, which is why I've not made a job yet.
|
I have my crontab set up to run Archstats (a stat reporting program for Arch Linux), download and install the latest packages for Arch, and as an alarm to wake me up most mornings.
|
I wrote a little script which copies the /root/.bash_history file to a backup location and append the date to the filename. I also insert date into the .bash_history file so I know what day commands were run. This comes in handy at times.
I run the script once a day via cron. I also use cron to run a script to check for disk space availability. (df -h) And it emails me if the output of the df is over 75%. |
Quote:
Quote:
|
All times are GMT -5. The time now is 04:16 PM. |