![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Static variable in shell | Yagami | Shell Programming and Scripting | 4 | 05-29-2009 09:50 AM |
| static variable storage | naan | High Level Programming | 1 | 01-29-2009 12:41 AM |
| Enviornment Variable in B shell (I call it nested variable) | princelinux | Shell Programming and Scripting | 4 | 07-02-2008 02:35 AM |
| Fake Static IP... (shell script) | heith | Shell Programming and Scripting | 2 | 02-27-2007 04:26 AM |
| Knowing the shell, no using $SHELL variable | gloprest | Shell Programming and Scripting | 3 | 02-09-2002 11:05 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Static variable in shell
Hi All,
I want a static variable in shell script. I have a script in which I want to send mail on certain condition and it happens that when that condition is met it start mailing as i have set my cron job to execute every 15 mins. And what i want is to run that script after every 15 mins and send mail only for 10 time and then stop for the day. What i plan to do is I will have a variable (static) that will keep track of this count that how many times mail has been sent already and then stop and start again next day for which i think i will use date or time as a parameter. Please suggest me or propose a better solution. I am not interested in autosys job although. Thankyou Yagami |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|