09-22-2017
Loop to execute 2 times and send an email alert
After the successful start of server, it should check the status again, if it is not running ,it should go through the loop for 2 times.
Even after two times of execution if still the server is not running it should send an alert email. Please help
Last edited by thomas9192; 09-25-2017 at 10:55 AM..
Reason: fixed code tags
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi
A) I am able to send eMail using mailx from a UNIX ( solaris 8 ) host to my Outlook-email-ID : FName.Surname@Citigroup.com ( This is NOT my actual -eMail-ID). But in Outlook the "From :" eMail address is displayed as
" usr1@unix-host1.unregistered.email.citicorp.com " .i.e the words... (2 Replies)
Discussion started by: Vetrivela
2 Replies
2. UNIX for Dummies Questions & Answers
Dear All,
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.
Any suggestion?
Thanks for all your kindly help.
Jacky (1 Reply)
Discussion started by: ITJacky
1 Replies
3. Solaris
Friends,
I am in search for a shell script that is capable of running as a cronjob and have to send out an email when ever there is a CORE DUMP.
Please post the hints to achieve my goal.
Thanks in advance. (1 Reply)
Discussion started by: rtatineni
1 Replies
4. AIX
Hi,
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?
Thanks!
Victor (1 Reply)
Discussion started by: victorcheung
1 Replies
5. Shell Programming and Scripting
Hello ,
I am trying to write a unix shell script to compare folder permission to say drwxr-x-wx and then send an email to my id in case the folders don't have the drwxr-x-wx permissions set for them .
I have been trying to come up with a script for few days now , pls help me:( (2 Replies)
Discussion started by: nairshar
2 Replies
6. Shell Programming and Scripting
Hi,
I have written below disk space monitoring script to monitor disk space every minute. I have scheduled this script through cron. But now my problem is this script alerts the users continuously until the space is freed up. These emails are filling up the inbox exponentially until the space... (3 Replies)
Discussion started by: svajhala
3 Replies
7. Shell Programming and Scripting
This is my first time writing a script and Im having some trouble,
Im trying to use the top command to monitor processes and the amount of CPU usage they require, my aim is to get an email if a process takes over a certain percentage of CPU usage
I tried grep
Obviosly that hasnt worked,
Any... (8 Replies)
Discussion started by: jay02
8 Replies
8. Shell Programming and Scripting
Hi,
I want to read file multiple times. Right now i am using while loop but that is not working.
ex.
While read line
do
while read line2
do
echo stmt1
#processing some data based on data.,
done < file2.txt
done < file1.txt # This will have 10... (4 Replies)
Discussion started by: tmalik79
4 Replies
9. Shell Programming and Scripting
Hi
I need help to do this. This is the output of qshape:
user$ qshape deferred|head
T 5 10 20 40 80 160 320 640 1280 1280+
TOTAL 0 0 0 0 0 0 0 0 0 0 0
T stands for minutes elapsed and TOTAL... (1 Reply)
Discussion started by: zorrox
1 Replies
10. Shell Programming and Scripting
Hello ALL,
need a BASH script who find file and send email with attachment.
I have 50 folders without sub directories in each generated files of different sizes but with a similar name Rp01.txt Rp02.txt Rp03.txt ...etc. Each directors bound by mail group, I need a script that goes as... (1 Reply)
Discussion started by: penchev
1 Replies
LEARN ABOUT XFREE86
qstart
qstart(8B) PBS qstart(8B)
NAME
qstart - start pbs batch job processing at a destination
SYNOPSIS
qstart destination ...
DESCRIPTION
The qstart command directs that a destination should process batch jobs. If the destination is an execution queue, the server will begin
to schedule jobs that reside in the queue for execution. If the destination is a routing queue, the server will begin to route jobs from
that queue.
In order to execute qstart, the user must have PBS Operation or Manager privilege.
OPERANDS
The qstart command accepts one or more destination operands. The operands are one of three forms:
queue
@server
queue@server
If queue is specified, the request is to start that queue at the default server. If the @server form is given, the request is to start all
queues at that server. If a full destination identifier, queue@server, is given, the request is to start the named queue at the named
server.
STANDARD ERROR
The qstart command will write a diagnostic message to standard error for each error occurrence.
EXIT STATUS
Upon successful processing of all the operands presented to the qstart command, the exit status will be a value of zero.
If the qstart command fails to process any operand, the command exits with a value greater than zero.
SEE ALSO
pbs_server(8B), qstop(8B), and qmgr(1B)
Local qstart(8B)