grep & egrep script problem



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

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list