nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Crontab question

This is a discussion on Crontab question within the Linux software forums, part of the Linux Getting Started category; Hiya, I have a question about the timesetting within a crontab. A non personal user has a crontab that has ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-22-2008, 05:02 PM
Junior Member
User
 
Join Date: Jul 2008
My distro: Debian
Posts: 2
Rep Power: 0
edb75 is on a distinguished road
Question Crontab question

Hiya,

I have a question about the timesetting within a crontab.

A non personal user has a crontab that has the foillowing line in it:
----
minute hour day_of_month month weekday command
0 */3 * * 0,6 /home/"usrname"/out/XX_restrt.sh
----

what is the meaning of the */3 (there is no space in between the * and the /)? Does it run every third hour ?

Greetz,

Elton
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-23-2008, 02:34 PM
Member
User
 
Join Date: Feb 2008
My distro: fedora
Posts: 30
Rep Power: 0
chandanperl is on a distinguished road
Default crontab

hi,
/ means per
and it will run every third minute.
Reply With Quote
  #3 (permalink)  
Old 07-23-2008, 02:42 PM
Junior Member
User
 
Join Date: Jul 2008
My distro: Debian
Posts: 2
Rep Power: 0
edb75 is on a distinguished road
Default

ThX for your answer Chandanperl

So if I take my example it would run every third hour as where you say every third minute(Just to make sure I get it not to attack you)
----
minute hour day_of_month month weekday
0 */3 * * 0,6
command
/home/"usrname"/out/XX_restrt.sh
----
Reply With Quote
  #4 (permalink)  
Old 07-24-2008, 03:39 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 578
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

Code:
* * * * * command to be executed
- - - - -
| | | | |
| | | | ----- Day of week (0 - 7) (Sunday=0 or 7)
| | | ------- Month (1 - 12)
| | --------- Day of month (1 - 31)
| ----------- Hour (0 - 23)
------------- Minute (0 - 59)
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
crontab click007 Getting started tutorials 6 10-19-2007 04:45 PM
Crontab lacloai Linux software 2 06-01-2007 03:44 AM
start and stop service in crontab. gthian Shell scripting 7 05-31-2007 11:04 AM
about crontab darknet Shell scripting 2 01-04-2007 06:01 PM
list every user's crontab script marinm Shell scripting 5 07-19-2005 11:24 PM


All times are GMT +5.5. The time now is 05:56 AM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36