Linux / UNIX Tech Support Forum
This is a discussion on Perl email notification within the Shell scripting forums, part of the Development/Scripting category; Hi there We are battling with a Perl script to send out email notifications once a certain bandwidth useage has ...
Register free or login to your account to remove all advertisements.
|
|||||||
| Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques |
![]() |
|
|
Thread Tools | Display Modes |
|
|||
|
Hi there
We are battling with a Perl script to send out email notifications once a certain bandwidth useage has been reached. The script works, but at ever cron job it resends the email. How do I get it to only send once without a flag? |
|
||||
|
Do you use sql database to store email state? If so it is pretty easy to do. If not create a text file when email was sent first time and use the same as a flag avoid sending email notification.
__________________
Vivek Gite |
|
|||
|
Hi there
Thanks very much - I suggested a flag system, but they are reluctant to go that route. We use a sql d/base to look up, and radius is on three servers using rad relay. The flag needs to be removed once they increased their bandwidth cap. |
|
||||
|
Flag is the best option. Explains them your problem.
__________________
Vivek Gite |
![]() |
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ubuntu Linux File Upload / Creation Email Notification | cristobalaz | Ubuntu / Debian | 9 | 18th June 2009 06:34 AM |
| Sendind Email Using Perl | chandanperl | Coding in General | 1 | 8th October 2008 12:41 PM |
| Email validation in Perl Code Sample | chandanperl | Coding in General | 3 | 12th September 2008 04:50 PM |
| how to send email on every saturday in perl | chandanperl | Coding in General | 4 | 22nd August 2008 06:25 PM |
| Mail Notification Agent | sumit | Mail Servers | 1 | 25th August 2007 08:05 PM |