10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I have below shell script to send mail alert , however I want to add more functionality in this script and that is , script should only check that file between 9 am to 5pm , and if there is no activity in this time 9 am to 5 pm for 2hours then it should give me mail alert, please help... (2 Replies)
Discussion started by: scazed
2. Shell Programming and Scripting
I am writing one shell script to send the mail alert to some email id's if the file not modified in last 10 mins but its not working, I believe MTIME is null string is wrong . can you please assist me on this.
echo "Filename is $filename"... (1 Reply)
Discussion started by: abhigrkist
3. Shell Programming and Scripting
Im looking to write a script to check if a file exists and if it doesnt then send an email out, Ive found the below code but I don't understand the ! in the if statement can anyone explain?
Any help will be much appreciated
echo "File not exists" |... (10 Replies)
Discussion started by: 02JayJay02
4. Shell Programming and Scripting
Hi i want to know how can i write a script to check if any changes are made and send an alert in crontabs . i am using .ksh file extension for writing scripts. (3 Replies)
Discussion started by: honey26
5. Shell Programming and Scripting
I have a requirement where a 3rd party system places a file in my folder.I am running on HP UNIX. I would like to have a unix script which will check for the existence of the file. If yes OK. if the file is not placed then it has to send a mail to couple of emails ids saying that... (3 Replies)
Discussion started by: phani333
I want to write a script to send alert by email whenever any failed login to the AIX. Can anyone tell how to do that?
Victor (1 Reply)
Discussion started by: victorcheung
7. Shell Programming and Scripting
I have a have a script which checks for some processes whether they are running or not and if they are not running then it send a mail specifying that the processes are not running.
This particular script example abc.ksh is runs in a cron like this
0,5,10,15,20,25,30,35,40,45,50,55 * * *... (5 Replies)
Discussion started by: usha rao
8. Shell Programming and Scripting
AIX 5.3 64 bit:
I am using the below shell script the objective is:
Use SQL*Plus to query the MAX(SEQUENCE#) from both databases V$LOG_HISTORY view. If the STANDBY appears to be falling behind,then send alert mail through the below shell script:
How... (0 Replies)
Discussion started by: a1_win
9. Shell Programming and Scripting
i need to monitor a cron job that runs every 5 mins. if this cron job does not process the request for more than 6 hrs, an alert mail should be sent.
how do i achieve this?? (1 Reply)
Discussion started by: smurala
10. UNIX for Dummies Questions & Answers
I am a newer of Unix Administrator. I would like to know any way to make Unix syslog critical error send automatically to me by email.
Then I don't need to check it manually and frequency everyday.
Thanks for all your kindly help.
Jacky (1 Reply)
Discussion started by: ITJacky
alert(3alleg4) Allegro manual alert(3alleg4)
alert - Displays a popup alert box. Allegro game programming library.
int alert(const char *s1, *s2, *s3, const char *b1, *b2, int c1, c2);
Displays a popup alert box, containing three lines of text (s1-s3), and with either one or two buttons. The text for these buttons is
passed in `b1' and `b2' (`b2' may be NULL), and the keyboard shortcuts in `c1' and `c2' as ASCII value. Example:
alert(CONFIG_FILE, "not found.", "Using defaults.",
"&Continue", NULL, 'c', 0);
Returns 1 or 2 depending on which button was clicked. If the alert is dismissed by pressing ESC when ESC is not one of the keyboard short-
cuts, it treats it as a click on the second button (this is consistent with the common "Ok", "Cancel" alert).
alert3(3alleg4), gui_fg_color(3alleg4), exgui(3alleg4), expackf(3alleg4), exspline(3alleg4)
Allegro version 4.4.2 alert(3alleg4)