LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 11-15-2012, 10:46 PM   #1
sureshkumar.challa
LQ Newbie
 
Registered: Nov 2012
Location: Bangalore
Distribution: Ubuntu12.04
Posts: 6

Rep: Reputation: Disabled
About CRON


what is cron command?when this cron will be use?
 
Old 11-16-2012, 12:56 AM   #2
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Debian, SL
Posts: 5,098

Rep: Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100
Hi,

welcome to LQ. cron is a daemon that is used to automatically run processes at predefined times. There is an insane amount of information on cron on the web. Please try a search engine, and then come back here if you have specific questions.

Evo2.
 
1 members found this post helpful.
Old 11-23-2012, 04:29 AM   #3
sureshkumar.challa
LQ Newbie
 
Registered: Nov 2012
Location: Bangalore
Distribution: Ubuntu12.04
Posts: 6

Original Poster
Rep: Reputation: Disabled
configure cron job

i am created one cron job for send mail.but i have a problem where when run cron file(.sh) in that time mail will be sent.but i want get every 15 min run cron job automatically.so how to configure that cron job file.
 
Old 11-23-2012, 04:32 AM   #4
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 11.4
Posts: 1,319

Rep: Reputation: 252Reputation: 252Reputation: 252
The possible entries are outlined in:
Code:
$ man 5 crontab
How to enter it in:
Code:
$ man crontab
 
Old 11-23-2012, 04:43 AM   #5
Lexus45
Member
 
Registered: Jan 2010
Location: Kurgan, Russia
Distribution: Slackware, Ubuntu
Posts: 339
Blog Entries: 3

Rep: Reputation: 47
Download the Slackbasics book
http://slackbasics-i18n.googlecode.c...cs-en-html.zip

And read the chapter 21.1. Scheduling tasks with cron
Of course you may search with Google. I just like Slackbasics and Slackbook. Good resources to learn Linux.

To do some job every 15 minutes, you have to edit the crontab for a certain user ('crontab -e') and then add there something like:
Code:
*/15 * * * * /bin/bash /path/to/script.sh
Note that editing crontab is in Vi-style, so you need to know the basic Vi commands.

Last edited by Lexus45; 11-23-2012 at 04:48 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Cron directories: /var/spool/cron/cron.GfqqGO Woodsman Slackware 4 05-11-2011 02:37 PM
cron.hourly cron.weekly cron.monthly and 0anacron. Are they necessary? glore2002 Debian 2 09-30-2009 08:57 PM
adding a perl script to cron.daily / cron.d to setup a cron job CrontabNewBIE Linux - Software 6 01-14-2008 08:16 AM
cron not working from crontab nor form /etc/cron/cron.d. What did SuSE change? JZL240I-U Suse/Novell 11 01-04-2007 01:57 AM
Can any one plz explain why/what for cron.d, cron.daily, cron.weekly etc are there. mavinashbabu Linux - Newbie 4 09-21-2006 01:50 PM


All times are GMT -5. The time now is 03:20 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration