File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Linux / UNIX and the fly likes Kron jobs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Kron jobs" Watch "Kron jobs" New topic

Kron jobs

vishwanath nadimpally
Ranch Hand

Joined: Jan 25, 2005
Posts: 116
Hello all,

Does any body know where kron jobs on a server usually sit. If they are to be restarted how would it be done.
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

Do you talk about cronjobs?

They are defined in a table called crontab on a per user base.
starts an editor and verifys after closing it the correct syntax.
lists your crontab.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17421

cron itself is a daemon that scans the crontabs. The crontab entries have scheduling information and a unix command line for each entry (one entry per line in the crontab). When the schedule indicates that the job should run, cron sets up the owner's environment and executes the associated command. Any output from the command is piped to mail and emailed to the crontab owner.

For cronjobs run as root processes on RedHat and Fedora (maybe other Linuxes), there are also a set of directories in /etc, such as /etc/cron.daily. If you drop an executable script (or link to a script) into one of these directories, it will be executed by the system daily (or weekly, or hourly, etc.)

crontab -e uses the editor that's defined in your EDITOR environment variable and that's almost invariably vi, unless you override it to use some other text editor.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Kron jobs
It's not a secret anymore!