LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-11-2004, 08:16 PM   #1
mustang05
LQ Newbie
 
Registered: Dec 2003
Posts: 26

Rep: Reputation: 15
scheduling a Script


I created a script and tested it to make sure it worked , now I need to schedule it in the cron. How do I get the script to run based on a schedule.
 
Old 05-11-2004, 08:31 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
man cron
man crontab
 
Old 05-12-2004, 06:36 PM   #3
mustang05
LQ Newbie
 
Registered: Dec 2003
Posts: 26

Original Poster
Rep: Reputation: 15
scheduling a scipt

I created a script to reboot within etc/cron.daily directory, I tested it manually and it worked fine but it is not executing according to the schedule. Did I leave a step out?
 
Old 05-12-2004, 06:50 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
You may find that to run it from cron it
requires the full path to the script ...


Cheers,
Tink
 
Old 05-12-2004, 08:28 PM   #5
mustang05
LQ Newbie
 
Registered: Dec 2003
Posts: 26

Original Poster
Rep: Reputation: 15
that worked. Thanks.
 
Old 05-12-2004, 09:20 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
Pleasure :}


Cheers,
Tink
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Scheduling scripts linuxhippy Slackware 3 11-10-2005 10:56 PM
Task Scheduling jeffkjo Linux - Software 4 12-02-2004 10:37 AM
PPPD Script problem when cron-scheduling the script andresurzagasti Linux - Networking 0 11-24-2004 03:54 PM
Linux Scheduling Kumar Programming 3 06-14-2004 05:24 AM
scheduling again nautilus_1987 Linux - Software 2 07-04-2003 08:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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