Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-23-2008, 01:42 PM   #1
Registered: Apr 2008
Posts: 60

Rep: Reputation: 15
Smile about cron job

can we set a cron job like that after every 10 seconds date command execute
Old 08-23-2008, 03:00 PM   #2
Mr. C.
Senior Member
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
No, cron has 1 minute resolution. Where would you want the output to go ?

What are you trying to accomplish?
Old 08-25-2008, 12:07 AM   #3
Senior Member
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Debian, OS X
Posts: 1,288

Rep: Reputation: 102Reputation: 102
Alternatively , you can use

while true;
your command;
sleep 10;


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
Cron Job???? ajeetraina Linux - Newbie 3 04-29-2008 09:20 AM
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 Job newbie_adm Linux - Newbie 2 06-05-2006 11:52 PM
cron job wbatzle Linux - Newbie 2 07-12-2005 04:19 PM
cron job? luap Linux - Software 2 03-16-2003 08:48 AM

All times are GMT -5. The time now is 03:48 AM.

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