Search Results

Search: Posts Made By: 1nsyz1on
132,848
Posted By 1nsyz1on
Still passes with whatever value I put in there...
Still passes with whatever value I put in there scrutinizer.


:-(
132,848
Posted By 1nsyz1on
Sorry for being such an idiot when it comes to...
Sorry for being such an idiot when it comes to this.


PID=<999999>
if ps -p $PID >&- ; then
echo running
else
echo not running
fi

When I run the above file it passes no matter what...
132,848
Posted By 1nsyz1on
Hi Thanks but it says ps -ef | grep...
Hi

Thanks but it says

ps -ef | grep -q dsdm
grep: illegal option -- q
Usage: grep -hblcnsviw pattern file

FYI this is SUN OS

Regards
132,848
Posted By 1nsyz1on
Check process running Status with PID
Good day

I am fairly new to Shell Scripting.

I want a script to check if a process is up by checking the process's PID and then return a value for when it's running which would be 0. If it...
Showing results 1 to 4 of 4

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