How to Run Regression Using a Cron Job

In Unix-based operating systems, including all of the Linux distributions, you can set up cron jobs to automate tasks. Cron jobs are simply scheduled automated tasks, used to run repetitive tasks at certain intervals. The regression tool kit can be used for a variety of operations in database control when utilizing Oracle's DB2 software. Therefore, if you have created a regression script to run at a certain interval, you can use a cron job.

Instructions

    • 1

      Open your Unix shell by clicking the terminal icon on the desktop or loading it from the system menu.

    • 2

      Type "crontab -u root -e" and press "Enter." This opens a plain text editor. Press "i" to enter text-editing mode.

    • 3

      Use the following example line to insert the cron job:
      0 10 * * * /path/to/regression.sh

      The first number represents the minutes, the second the hour, the third the day of the month, the fourth the month, the fifth the day of the week. An asterisk means at each of these intervals. Therefore, in the above example the script will be run at 10 a.m. every day. Replace "/path/to/regression.sh" with the path to and the file name of your regression script.

    • 4

      Press "Esc" to exit insert mode and then type "ZZ" (both uppercase) to exit and save.

Related Searches:

References

Comments

Related Ads

Featured