sitl_run.sh: use ps instead of jps (#5376)

The tool jps does not seem to be available on macos Java.
This commit is contained in:
Julian Oes 2016-08-24 17:07:14 +02:00 committed by Lorenz Meier
parent 0127f4017a
commit 14ed65f0e4
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ fi
# be running from last time
pkill gazebo
pkill px4
jmavsim_pid=`jps | grep Simulator | cut -d" " -f1`
jmavsim_pid=`ps aux | grep java | grep Simulator | cut -d" " -f1`
if [ -n "$jmavsim_pid" ]
then
kill $jmavsim_pid