![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Accumulate counter in script | Pablo_beezo | Shell Programming and Scripting | 2 | 05-06-2008 08:43 AM |
| counter problem | jwholey | Shell Programming and Scripting | 2 | 03-19-2008 04:39 PM |
| Error in Script (counter) | Felix2511 | UNIX for Dummies Questions & Answers | 2 | 12-13-2007 07:30 AM |
| counter in a variable - can it be done? | gazz1982 | Shell Programming and Scripting | 3 | 08-09-2007 10:47 PM |
| Increment counter in ksh | steiner | Shell Programming and Scripting | 5 | 12-02-2003 08:10 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Counter Script..help please
I have generated a script that will email a list of people if a certain PID is not running, using "mailx". I have the script running every 5 minutes as a cron job.
I want the script to stop sending an email, if the email has been sent 5 times (meaning PID is dead). I want this so that my inbox doesn't get full. Do I implement a "for loop" or "counter" syntax in my script? If so, can someone help with the code. Thanks. Cheers! |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|