spawn ssh -o StrictHostKeyChecking=no opsuser@8.147.119.215 su - root -c 'echo before; pgrep -af "/usr/local/php7.3/bin/php /tmp/csfzx_mqtt_60_sim.php" || true; pids=$(pgrep -f "^/usr/local/php7.3/bin/php /tmp/csfzx_mqtt_60_sim.php$" || true); if test -n "$pids"; then kill $pids; fi; sleep 1; echo after; pgrep -af "/usr/local/php7.3/bin/php /tmp/csfzx_mqtt_60_sim.php" || true' opsuser@8.147.119.215's password: Password: T8bN!3vGx$6jHy%1c before 3619161 su - root -c echo before; pgrep -af "/usr/local/php7.3/bin/php /tmp/csfzx_mqtt_60_sim.php" || true; pids=$(pgrep -f "^/usr/local/php7.3/bin/php /tmp/csfzx_mqtt_60_sim.php$" || true); if test -n "$pids"; then kill $pids; fi; sleep 1; echo after; pgrep -af "/usr/local/php7.3/bin/php /tmp/csfzx_mqtt_60_sim.php" || true 3619183 -bash -c echo before; pgrep -af "/usr/local/php7.3/bin/php /tmp/csfzx_mqtt_60_sim.php" || true; pids=$(pgrep -f "^/usr/local/php7.3/bin/php /tmp/csfzx_mqtt_60_sim.php$" || true); if test -n "$pids"; then kill $pids; fi; sleep 1; echo after; pgrep -af "/usr/local/php7.3/bin/php /tmp/csfzx_mqtt_60_sim.php" || true after 3619161 su - root -c echo before; pgrep -af "/usr/local/php7.3/bin/php /tmp/csfzx_mqtt_60_sim.php" || true; pids=$(pgrep -f "^/usr/local/php7.3/bin/php /tmp/csfzx_mqtt_60_sim.php$" || true); if test -n "$pids"; then kill $pids; fi; sleep 1; echo after; pgrep -af "/usr/local/php7.3/bin/php /tmp/csfzx_mqtt_60_sim.php" || true 3619183 -bash -c echo before; pgrep -af "/usr/local/php7.3/bin/php /tmp/csfzx_mqtt_60_sim.php" || true; pids=$(pgrep -f "^/usr/local/php7.3/bin/php /tmp/csfzx_mqtt_60_sim.php$" || true); if test -n "$pids"; then kill $pids; fi; sleep 1; echo after; pgrep -af "/usr/local/php7.3/bin/php /tmp/csfzx_mqtt_60_sim.php" || true