• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Kron jobs

 
vishwanath nadimpally
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Thanks
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic