Search Results

Search: Posts Made By: sriramperumalla
3,468
Posted By sriramperumalla
Hi Alister, I have to collect command output...
Hi Alister,
I have to collect command output and see the exit status at the same time.
Can this work with rad's suggestion?

Regards,

Sriram

---------- Post updated at 09:02 PM ----------...
3,468
Posted By sriramperumalla
thanks ahamed and rod... both solutions work.....
thanks ahamed and rod... both solutions work.. however i got another idea just now...

I am not collecting succesful commands, instead i am collecting only non-zero codes...
so, i f all commands...
3,468
Posted By sriramperumalla
thanks ahmed, but i cannot hard "0 0 0...
thanks ahmed,

but i cannot hard "0 0 0 0".... as i can run even 10 commands in the same script..
so i have to grep for non-zero exit codes.

Thanks,

Sriram:confused:
3,468
Posted By sriramperumalla
Need urgent help on exit status of the script
Guys,
I am writing a script that executes a series of commands with a function like:

_Command "ps -ef | grep java"
_Command "vmstat"
_Command "llll"

Even if one of these commands fail, my...
6,838
Posted By sriramperumalla
Thanks hfreyer
Thanks dude it's working for me... :b:

Cheers,
Sriram
6,838
Posted By sriramperumalla
Redirect system output to null in perl
Hi Guys,

Please help me.. it is urgent. I am writing a perl script to capture command output and redirect it to a logfile.At the same i want to check the return code of the command and log it if...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 03:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy