Thread
:
[Linux bash] Why is this not working?
View Single Post
CowboyFromHell
2010-03-11 , 17:47
Posts: 17 | Thanked: 4 times | Joined on Mar 2010 @ Germany
#
17
If you only want to check, whether it is running or not, you could do
if `echo $my | grep -q RUNNING`
Note: no "test" or [...]. grep -q is "quiet" and gives a return value for "found" or "not found"
Quote & Reply
|
CowboyFromHell
View Public Profile
Send a private message to CowboyFromHell
Find all posts by CowboyFromHell