Exforsys

Online Training

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 ...


Go Back   Exforsys > Operating Systems > Shell Programming

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-17-2007, 06:15 PM
Senior Member
 
Join Date: Apr 2006
Posts: 139
Ralph is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-12-2007, 10:49 AM
Junior Member
 
Join Date: Jun 2007
Posts: 8
psiva_exforsys is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Request for interview question for Testing (QA) wildkid98 Testing Tutorials 17 04-23-2008 05:24 AM
Tutorial on Silk Test spriya279 Testing Tutorials 2 02-15-2007 07:31 PM
Unix - Frequently Asked Questions (3/7) [Frequent posting] Ted Timar Tech FAQ 0 05-11-2004 07:50 AM
Unix - Frequently Asked Questions (4/7) [Frequent posting] Ted Timar Tech FAQ 0 05-03-2004 07:54 AM
[FAQ] FileMaker Pro - database for Macintosh and Windows Martin Trautmann Tech FAQ 0 04-17-2004 08:26 AM


All times are GMT -4. The time now is 05:30 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.