[CentOS] bash script fails conditional test
Chris Adams
linux at cmadams.netMon Apr 20 01:58:43 UTC 2015
- Previous message: [CentOS] bash script fails conditional test
- Next message: [CentOS] bash script fails conditional test
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Once upon a time, Tim Dunphy <bluethundr at gmail.com> said: > pid=$(ps -ef | grep cassandra | grep -v grep | grep -i -v -e grep -e screen > -e s3fs|awk '{print $2}') You can probably replace that with a much cleaner pid=$(pidof cassandra). -- Chris Adams <linux at cmadams.net>
- Previous message: [CentOS] bash script fails conditional test
- Next message: [CentOS] bash script fails conditional test
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list