#1  
Old 28th March 2008, 06:53
pravinkharche pravinkharche is offline
Junior Member
 
Join Date: Mar 2008
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
Post crontab

how can i add crontab in every 5 minit or every 2 min task should compltd
and for every boot
Reply With Quote
Sponsored Links
  #2  
Old 28th March 2008, 10:27
zcworld zcworld is offline
Senior Member
 
Join Date: Jul 2006
Location: South Australia
Posts: 329
Thanks: 2
Thanked 37 Times in 37 Posts
Send a message via MSN to zcworld Send a message via Skype™ to zcworld
Default

go here
http://www.csgnetwork.com/crongen.html

and put in what you need click calculate
copy it
and in your terminal / putty window
crontab -e
at the bottom of the file
paste in the info

:wq

and wait
to see if its runs
__________________
Shane Ebert :: Facebok
Reply With Quote
The Following User Says Thank You to zcworld For This Useful Post:
pravinkharche (31st March 2008)
  #3  
Old 28th March 2008, 15:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,726 Times in 2,565 Posts
Default

Every 5 minutes:
Code:
*/5 * * * * your_command
Every 2 minutes:
Code:
*/2 * * * * your_command
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
pravinkharche (31st March 2008)
  #4  
Old 31st March 2008, 12:44
pravinkharche pravinkharche is offline
Junior Member
 
Join Date: Mar 2008
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
Post multiple crontab

Quote:
Originally Posted by falko
Every 5 minutes:
Code:
*/5 * * * * your_command
Every 2 minutes:
Code:
*/2 * * * * your_command
thaku for help but how can i set more than one task in crontab at a time
Reply With Quote
  #5  
Old 31st March 2008, 13:26
zcworld zcworld is offline
Senior Member
 
Join Date: Jul 2006
Location: South Australia
Posts: 329
Thanks: 2
Thanked 37 Times in 37 Posts
Send a message via MSN to zcworld Send a message via Skype™ to zcworld
Default

crontab -e

each task on its own line

*/2 * * * * /my/task1
*/2 * * * * /take2/222
*/2 * * * * /moot/11
__________________
Shane Ebert :: Facebok
Reply With Quote
  #6  
Old 31st March 2008, 13:41
pravinkharche pravinkharche is offline
Junior Member
 
Join Date: Mar 2008
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by zcworld
crontab -e

each task on its own line

*/2 * * * * /my/task1
*/2 * * * * /take2/222
*/2 * * * * /moot/11

i want to do this using scprit
or is it possible that one user having twwo diffrent crontab file
Reply With Quote
  #7  
Old 1st April 2008, 17:09
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,726 Times in 2,565 Posts
 
Default

Quote:
Originally Posted by pravinkharche
i want to do this using scprit
or is it possible that one user having twwo diffrent crontab file
Why do you want to have two crontabs for one user? You can put multiple cron jobs in one crontab, one per line.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ask: how to setting crontab for blacklists (dansguardian) abadi Installation/Configuration 5 14th July 2014 05:50
crontab in detail sysconfig Suggest HOWTO 0 4th November 2006 10:38
Crontab issue, 2 questions jang Installation/Configuration 2 20th September 2006 19:39
Nothing in crontab punto Installation/Configuration 8 1st August 2006 00:01
crontab entries... zokahn General 2 23rd April 2006 10:55


All times are GMT +2. The time now is 01:57.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.