Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I was looking to automate a backup script that I have made. I want to have Cron run it for me. I understand that there should be a user tab in /var/spool/cron/tabs. However, when I went there there was no tab for me there. I then created my own tab and put my script in the newly created tab. Will this work, or am I missing a step that is required?
I am running Suse 10.0 with KDE 3.5. Any help offered is greatly appreciated.
this open a vi session which let you create your own crontab. See man crontab for more details and other useful options. The environment variable EDITOR control the program used for editing (vi as default).
You don't need to mess around in /var/spool for that.
Either you type crontab -e in a terminal which launches an available text editor (your favourite text editor as defined in the EDITOR shell variable, or when you're unlucky: vi ;-)
however, the crontab is in a special format, that means the time and date when a specific task is run must to be put in there in a special order:
1st column: minute of the hour
2nd column: hour of the day
3rd column: day of month
4th column: month
5th column: day of week
and finally 6th column: the command you want to run.
it is very flexible, but also not easy to grasp on first sight. for example, you can also define "slices" of time. If the first column is for example 59/3 then the command would be launched every 3 minutes.
Just have a look at the manpage.
KDE also has a frontend available, it is called kcron
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.