Search Results

Search: Posts Made By: schippada
912
Posted By schippada
I am sorry, I have solved the issue with the...
I am sorry, I have solved the issue with the scrip thank you
912
Posted By schippada
help with script
h=$(wc -l child | grep -v grep | awk '{print $1}')
i="1"
while [ $i -le $h ]
do
n$i=$(sed -n '$ip' child)
echo "$(n$i)"
i=$[$i + 1]
done

h is number of lines in a file(child)
Output...
4,838
Posted By schippada
I figured it out as we need to count only one...
I figured it out as we need to count only one instance....thank you every one

---------- Post updated at 05:53 PM ---------- Previous update was at 05:52 PM ----------

ps -s 22345 | grep -v...
4,838
Posted By schippada
the problem is i am getting two pid's when i am...
the problem is i am getting two pid's when i am pass it to ps -s it is not able to parse both of them .
4,838
Posted By schippada
script to get child process for a process
!/bin/sh

pid=$(ps -Aj | grep MSTRSvr | grep -v grep | awk '{print $1}')
sid=$(ps -Aj | grep MSTRSvr | grep -v grep | awk '{print $3}')
ps -s "$sid"

I am not able to get the desired output it...
Showing results 1 to 5 of 5

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