grep & egrep script problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux