Scheduling scripts


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Scheduling scripts
# 1  
Old 11-02-2012
Scheduling scripts

Dear All

My os is sun solaris 10, i am trying to schedule a scripts with below command but unable to do so.

crontab 15 8 * * * load_rio.sh
crontab: proper usage is:
crontab [file | -e | -l | -r ] [user]


What is wrong with this, even i have tried 15 8 * * * load_rio.sh
# 2  
Old 11-02-2012
Try using full path..

use crontab -e to edit...

Code:
15 8 * * * /path/load_rio.sh

# 3  
Old 11-02-2012
To edit your crontab file, use this command. Set the EDITOR variable to your favorite editor, like vi:
Code:
EDITOR=vi crontab -e

when the editor has started, write the line

Code:
15 8 * * * load_rio.sh

into the file and then save it. That should do the trick.

You can not pass the crontab line to the crontab command as argument directly.

YOu might also have to use the full pathname to load_rio.sh if the script is not in the system default PATH.
# 4  
Old 11-02-2012
I have put below command into crontab
30 08 * * * /ersdg3/ERS/ERS_INPUT_LOGS/loader/load_rio.sh

although i have tried through the command line but couldn't succeed
# 5  
Old 11-02-2012
If you edited your crontab file directly (if your system allows this), cron was not notified of the change. You have to use the crontab -e command to notify cron of a changed crontab file.
# 6  
Old 11-02-2012
I have used crontab -e
but how can i be sure that it was notified and it is in good shape
# 7  
Old 11-02-2012
Wait for the next scheduled time the command should run and check, if it actually does (by looking at the ps -ef output, some logfile your command writes or in the cron logfile, if you are authorized to read it)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Scheduling a script

Hi, I have my script in below path in UNIX /storage/sas_source/SDTM-Development/FileWatcher/filewatcher.sh I want to schedule it to run every 30 secs. Please let me know the steps to do it. Thanks. (7 Replies)
Discussion started by: prats_7678
7 Replies

2. Shell Programming and Scripting

Scheduling scripts with "at" command

Hi All , I need to create a scheduling capability on one of Linux boxes so that i could some 6 scripts back to back after a gap a given time difference . To run script1 :-- my test1.sh for 3 hrs , followed by 2nd script ,mytest2.sh for 10 hrs , then mystest3.sh for 2 hrs , then... (3 Replies)
Discussion started by: Anamica
3 Replies

3. Shell Programming and Scripting

Scheduling issues

I AM ON SOLARIS I have a script it.sh which is running fine when i execute it from shell command. But when i schedule it in crontab it is throwing error. Why and how can i resolve it ?i am clueless IT.SH #!/bin/sh ORACLE_HOME=/var/opt/oracle/product/10g; export ORACLE_HOME... (1 Reply)
Discussion started by: rafa_fed2
1 Replies

4. Shell Programming and Scripting

Crontab Scheduling

I want to schedule a job as - Every Weekday at 12:30 PM and 9 PM in a single line. How can i do that (2 Replies)
Discussion started by: varlax
2 Replies

5. Shell Programming and Scripting

Scheduling scheduling !!!

Hi, i have 10 sh scripts. All are running in parallel using cron tab and each script gives "success" flag files once the execution is completed. and, now i have 11th script which should look for "success" flag from those 10 sh scripts. once all the 10 flag files found, 11 th script has to do... (9 Replies)
Discussion started by: nago123
9 Replies

6. Shell Programming and Scripting

KSH - How to call different scripts from master scripts based on a column in an Oracle table

Dear Members, I have a table REQUESTS in Oracle which has an attribute REQUEST_ACTION. The entries in REQUEST_ACTION are like, ME, MD, ND, NE etc. I would like to create a script which will will call other scripts based on the request action. Can we directly read from the REQUEST_ACTION... (2 Replies)
Discussion started by: Yoodit
2 Replies

7. Shell Programming and Scripting

Crontab scheduling

Hi all, My OS is Solaris 10. I want to schedule a job which i need to run between morining 6 to eve 6 once for every 2 hours. This is what i did. 0 6-18 * * 1-5 /monitor.sh It runs for every hour how to make it for every two hours ...... Thanks, Firestar. (1 Reply)
Discussion started by: firestar
1 Replies

8. Shell Programming and Scripting

Changing the Bash Scripts to Bourne Scripts:URGENT

Hi, I have to write a program to compute the checksums of files ./script.sh I wrote the program using bash and it took me forever since I am a beginner but it works very well. I'm getting so close to the deadline and I realised today that actually I have to use normal Bourne shell... (3 Replies)
Discussion started by: pgarg1989
3 Replies

9. UNIX for Dummies Questions & Answers

scheduling

i have tried to schedule my process at a certain time using the at command : the error says bad time specification can somebody help me i used at 2300 job thanks (2 Replies)
Discussion started by: prashantuc
2 Replies

10. UNIX for Dummies Questions & Answers

regarding the scheduling of the process

Hello, I would like to schedule a command at a specific time on my system.I know that theres a file named at.alow and at.deny in my system. I can find the at.deny file but not an at.allow file . Is there anyway out or i have to go and talk to the system administrator itself , or any other way of... (1 Reply)
Discussion started by: prashantuc
1 Replies
Login or Register to Ask a Question