10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Could you please help me out in my script and identify the missing piece. I need to check/get the exit status of a remote command executed on remote host through script and send out an email when process/processes is/are not running on any/all server(s).
Here's the complete... (5 Replies)
Discussion started by: lovesaikrishna
2. Shell Programming and Scripting
solaris 5.10 Generic_138888-03 sun4v sparc SUNW,Sun-Fire-T200
I need a sed command that tests true when presented with lines that contain either forward and backslash.
It doesn't appear that sed (in my environment anyway) supports... (4 Replies)
Discussion started by: msutfin
In shell scripting, I can create a conditional statement based on the success or failure (exit status)of a command such as:
ping -c 2 $remote_host >/dev/null 2>&1
if ]; then
how is this done using Python using... (3 Replies)
Discussion started by: metallica1973
4. UNIX for Dummies Questions & Answers
As in scripting , some cd commands getting failed, so we do check the exist status as 0 or 1. But every time we call to function for it. But does any single line exist will do the job with || , && ? i.e
cd Logss | exit
echo hias Logss is not exist , Before printing "hi" we... (5 Replies)
Discussion started by: posix
5. Shell Programming and Scripting
I am running a shell script which will spawn the telnet and login.
But sometimes, the telnet session itself is not getting spawned.
My requirement is, if the telnet session is not spawned, the user must be notified that it failed.
Is there any command to capture the status of telnet... (2 Replies)
Discussion started by: merin
6. Shell Programming and Scripting
How to check the status of tar command using bash script ?
I have the following tar command, how to check the status of the tar?
tar -cjf $today.tar.bz2 /opt/data
Eye Gee (1 Reply)
Discussion started by: egkua
7. Shell Programming and Scripting
I am working on an Linux based application where I am using lp -onobanner -s -d$RPTDEST command to print the file on desired printer. Variable $RPTDEST could be different each time even for the same user. I need to implent the check if last print command was succesful or not, so that application... (3 Replies)
Discussion started by: dpmore
8. Shell Programming and Scripting
I wrote a ksh program which run scripts from remote server.
To check the status code I wrote the following function:
status_code=`tail -1 $installLog`
if ] ; then
echo $errMsg | tee -a $installLog
echo $validMsg >> $installLog
fi... (9 Replies)
Discussion started by: nir_s
9. Shell Programming and Scripting
We have a text file which has the following data.
ISA~00~ ~00~ ~ZZ~VISTN ~ZZ~U1CAD ~051227~183
AK5~A... (3 Replies)
Discussion started by: isingh786
10. UNIX for Dummies Questions & Answers
I want to know if the email address in the mailx exists or not
Mailx -s "Subj" firstname.lastname@example.org
How do I know if the email address is a valid one??? (4 Replies)
Discussion started by: superprogrammer