grep & egrep script problem
- From: "Paul Ward" <pnward@xxxxxxxxxxxxxx>
- Date: Thu, 2 Nov 2006 08:45:45 +0000
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
- Follow-Ups:
- Re: grep & egrep script problem
- From: Joe Smith
- Re: grep & egrep script problem
- From: Tim Fenn
- Re: grep & egrep script problem
- From: Cameron Simpson
- Re: grep & egrep script problem
- Prev by Date: Re: cant get out with anything other than firefox
- Next by Date: Re: FC6 AIGLX Issue: title bar missing from windows
- Previous by thread: Re: cant get out with anything other than firefox
- Next by thread: Re: grep & egrep script problem
- Index(es):