The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
getting results after using ps command
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
getting results after using ps command
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
10-07-2008
yale_work
Registered User
Join Date: Jun 2008
Posts: 28
I tried something like that.....
ps -ef | grep test
if [ `ps -efo tty,time,args|awk '/test/{print $1}'` -eq '-' -a `ps -efo tty,time,args|awk '/test/{print $2}'` -ne "0:00" ] then
1
fi
error message was:
0403-057 Syntax error: `fi' is not expected.
yale_work
View Public Profile
Find all posts by yale_work
Find yale_work's past nominations received
Find yale_work's present nominations given