Re: bash script fails conditional test

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



Once upon a time, Tim Dunphy <bluethundr@xxxxxxxxx> said:
> Good to know! I hadn't heard of pidof before. However this is what I get
> when I run it:

Try pid=$(pidof -x cassandra).  Normal pidof calls look for programs
with the given name, but scripts/interpreted programs show up with the
interpreter first and then the program name.  The -x options tells it to
look for script-like things as well.
-- 
Chris Adams <linux@xxxxxxxxxxx>
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux