grep & egrep script problem
Paul Ward
pnward at googlemail.com
Thu Nov 2 08:45:45 UTC 2006
Hi All,
Can anyone help me with the script problem.
I am wanting to find multiple proccess and then produce a true exit
code if they are all there and a false if they are not.
I have been looking into this but can find no easy way of doing this.
I currently have this bit of code for testing.
# ps -fe| awk '{print $8}' | egrep "test1" -e "test2" |echo $?
This does not work as it will look for test1 and tehn test2 I need
this stament but using test1 and test2.
Any help would be great
Paul
More information about the fedora-list
mailing list