LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 10-08-2010, 12:32 AM   #1
A.Hariharasudhan
LQ Newbie
 
Registered: Oct 2010
Posts: 1

Rep: Reputation: 0
To run a shell script automatically on time


Hello All,

I have a shell script named as Ping.ksh.Actually this script will ping 100 server for few second and suit a mail to me the server names those are not in online.

So i need to run this script 3am,4am and 5am daily. I'm new to this lunix. If you help me to run this job daily on above mentioned time interval that would be really helpful for me.

Thnx
Hari A
 
Old 10-08-2010, 01:20 AM   #2
leejohnli
Member
 
Registered: Sep 2010
Posts: 58

Rep: Reputation: 2
Check below link for other info:
http://www.crontabrocks.org/

run your script @
0 3,4,5 * * * /path/of/your/script
 
1 members found this post helpful.
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to run a shell script automatically? ceantuco Linux - Newbie 4 12-16-2008 10:16 AM
How to run a shell script evey day automatically at a particular time krevathi1912 Programming 3 09-22-2007 01:15 PM
RH8 - how to automatically run a shell script at boot time nu-B Linux - Newbie 2 11-03-2003 02:47 PM
RH8 - how to automatically run iptables rules shell script at boot time nu-B Linux - General 1 10-29-2003 08:38 PM


All times are GMT -5. The time now is 05:32 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration