Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-05-2003, 10:44 PM   #1
LQ Newbie
Registered: May 2003
Location: None
Posts: 26

Rep: Reputation: 15
Command to run a program at designated times

I forgot the name of the command that allows you to tell it to run a program at a designated time. Anyone know what I am talking about?
Old 05-05-2003, 11:16 PM   #2
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Are you speaking of the cron daemon? If so you use:

crontab -e

to edit the crontab config files.
Old 05-05-2003, 11:49 PM   #3
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Old 05-06-2003, 09:00 AM   #4
LQ Newbie
Registered: May 2003
Location: None
Posts: 26

Original Poster
Rep: Reputation: 15
Yea, I was messing with that, but at will only do the task once.
Old 05-06-2003, 09:02 AM   #5
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
so cron then....
Old 05-06-2003, 09:07 AM   #6
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Some distros have certain crons already setup. Use:
crontab -l
to list them; crontab -l <username> to list them for a specific user.

If your distro has it setup already to run something, say every hour on the 47 minute mark, and you want to do something then as well; you may be able to simply make a ultra simple script, place it in the "cron.hourly" directory and that's it.

Again, I do think it's highly distro specific though...



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
How To Run Program From Command Line? neuropulse Linux - Newbie 2 04-16-2005 05:46 PM
How to run a command through a Java program kernelvn Programming 3 12-02-2004 09:25 PM
command to run a program stupidloser Linux - Newbie 1 08-11-2004 02:55 AM
how do I run a command from inside a c++ program? exodist Programming 1 04-06-2004 04:34 PM
Viewing program messages when program isn't run from command line? Locura Linux - Software 1 09-27-2003 08:19 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:06 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