Help answer threads with 0 replies.
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 03-17-2010, 05:47 PM   #1
LQ Newbie
Registered: Dec 2009
Posts: 16

Rep: Reputation: 0
How Do I Use 'AT' or Cron?

How can I run a scheduled job in a specific hour minute second (hh:mm:ss)
I tried “at” but I do not know how to send it “seconds”.
Any idea?
Old 03-17-2010, 05:59 PM   #2
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
You can't send AT seconds, and you can't send cron seconds either.
Old 03-17-2010, 06:03 PM   #3
Senior Member
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 164Reputation: 164
I don't believe the default versions of at or cron support seconds.
Old 03-17-2010, 06:48 PM   #4
Registered: Apr 2006
Location: Washington
Distribution: Suse, CentOS, Ubuntu
Posts: 124

Rep: Reputation: 15
really? you need to run it at a specific "second" of the day??
Old 03-17-2010, 06:54 PM   #5
LQ Newbie
Registered: Dec 2009
Posts: 16

Original Poster
Rep: Reputation: 0
Thank you for the answer,

And then is the any other command that I can use to run a command after h hours, m minutes and s seconds?
Old 03-17-2010, 07:07 PM   #6
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Why the need for seconds? It seems to be a strange approach.

You could conceivable write a wrapper shell script with a "sleep X" and
then whatever you want to run at the second ... but that may bear a little
inaccuracy given the non-real-time time slicing in the ordinary Linux
kernel ... what makes the requirement of a second necessary?



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
adding a perl script to cron.daily / cron.d to setup a cron job CrontabNewBIE Linux - Software 6 01-14-2008 09:16 AM
'cron' and 'at' lawrence_lee_lee Linux - Software 6 01-11-2008 02:12 AM
using 'at' and 'batch' command harry_0098 Linux - Newbie 1 10-30-2007 11:07 AM
cron not working from crontab nor form /etc/cron/cron.d. What did SuSE change? JZL240I-U SUSE / openSUSE 11 01-04-2007 02:57 AM
'at' command not working minike Slackware 9 03-04-2006 08:59 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:56 PM.

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