LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-17-2010, 04:47 PM   #1
jlucasnog
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, 04:59 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
You can't send AT seconds, and you can't send cron seconds either.

https://help.ubuntu.com/community/CronHowto
http://www.yolinux.com/TUTORIALS/Lin...sAdmin.html#AT
 
Old 03-17-2010, 05:03 PM   #3
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
I don't believe the default versions of at or cron support seconds.
 
Old 03-17-2010, 05:48 PM   #4
hockeyman_102
Member
 
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??

http://en.wikipedia.org/wiki/Cron
 
Old 03-17-2010, 05:54 PM   #5
jlucasnog
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, 06:07 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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?


Cheers,
Tink
 
  


Reply



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 08:16 AM
'cron' and 'at' lawrence_lee_lee Linux - Software 6 01-11-2008 01:12 AM
using 'at' and 'batch' command harry_0098 Linux - Newbie 1 10-30-2007 10: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 01:57 AM
'at' command not working minike Slackware 9 03-04-2006 07:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:43 AM.

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