Exforsys
+ Reply to Thread
Results 1 to 2 of 2

How to Schedule My Script

This is a discussion on How to Schedule My Script within the Shell Programming forums, part of the Operating Systems category; I have written my small shell script to take care of administration tasks. I want to run this script every ...

  1. #1
    Ralph is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    114

    How to Schedule My Script

    I have written my small shell script to take care of administration tasks. I want to run this script every two hours without my intervention so that the command written in my script does the processes every two hours and manage the administration as specified by me inside the script. How can I incorporate this inside my shell script itself. Kindly help me to finish this process.


  2. #2
    psiva_exforsys is offline Junior Member Array
    Join Date
    Jun 2007
    Answers
    8

    Auto scheduler

    In UNIX one utility is there for auto run (scheduler) withoput manual intrupt and with specified time duration.

    cron has five parameters
    min
    hour
    month of the year
    day of the month
    day of the week

    00 1,3,5,7,9,11,13,15,17,19,21,13 * * * /cd $Script_path/sample.ksh > &2

    where sample.ksh is the shell script and all the error process will go to the error file if any error will occure while processing the script.

    Regards,
    Siva.P
    bangalore


Latest Article

Network Security Risk Assessment and Measurement

Read More...