Search Results

Search: Posts Made By: raviraushanjha
20,955
Posted By raviraushanjha
change user through shell script
hi,
my problem is that i am calling a script from my perl program.
the script checks wether a particular process is running or not if the process is not running then it should start the process....
17,202
Posted By raviraushanjha
to determine wether a process is running or not
#!/bin/sh
var1=`ps -ef | grep -v grep | grep process_name| awk '{print $2}'`
echo $var1
if [ -n $var1 ]
then
echo "The Process is Running"
else
echo "The process is not running"
fi
Showing results 1 to 2 of 2

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