Solved

cron

Posted on 2006-12-01
4
241 Views
Last Modified: 2010-04-20
hello,
I wanted to make sure this is right!
and the the cron will rung every 6 hours
sample
4:16pm
10:16pm
4:16am
and so on!

16 */6 * * * joey /usr/bin/somecommand >> /dev/null 2>&1
0
Comment
Question by:Sabrin
  • 2
  • 2
4 Comments
 
LVL 45

Accepted Solution

by:
sunnycoder earned 500 total points
ID: 18052120
Hi Sabrin,

Yes that is correct ... Task will run 16th minute of every 6th hour from start.

Cheers!
sunnycoder
0
 

Author Comment

by:Sabrin
ID: 18052132
how can I make it run like this?
6pm
12am
6am
12pm
0
 
LVL 45

Expert Comment

by:sunnycoder
ID: 18052149
16 0,6,12,18 * * *
0
 

Author Comment

by:Sabrin
ID: 18052161
thanks
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now