This is a discussion on run a command automatically after every 10 mins within the Shell scripting forums, part of the Development/Scripting category; Hi friends, I need to write a script which runs a command (on that particular server only) after every 10 ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
Hi friends,
I need to write a script which runs a command (on that particular server only) after every 10 mins, and the contents are also echoed on that very terminal only. And then I need to compare the last two outputs, and mail if there is any difference in the last two outputs. Can we set some alerts, say a machine beeps if the last two outputs have some difference. Thats my total job. I think I can do the rest part of it, BUT first I want to know how can I run a command automatically after every 10 mins, and dislpay its contents on the terminal. Pls help, I am a newbie still learning. Thanks in adv. Regards, Vikas |
| Sponsored Links | ||
|
|
|
||||
|
Quote:
Setup a cron job to run every 10 min i.e. call this script using cron job. See how to use cron job: How do I add jobs to cron under Linux or UNIX oses? Good luck! |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to start Apache2 automatically at boot | satimis | Web servers | 2 | 02-03-2008 06:03 PM |
| /tmp clean directory automatically using tmpwatch | tanachi | Getting started tutorials | 4 | 05-24-2007 10:58 AM |
| Automatically restart unix daemon | raj | Linux software | 2 | 12-16-2006 11:29 AM |
| Dynamic DNS , should get updates automatically from DHCP | sonaikar | Linux software | 1 | 03-28-2005 12:14 PM |
| How to update DNS through DHCP automatically | sonaikar | Shell scripting | 1 | 03-16-2005 06:42 PM |