1
0
Fork 2
RobotKernal-UESTC/Code/RK3588/PIBot_ROS/pibot_clear_rosproc.sh

4 lines
205 B
Bash
Raw Normal View History

2023-12-11 11:17:13 +08:00
#!/bin/bash
# kill all ros&pibot process
ps -aux | grep "/opt/ros" | grep -v "grep" | awk '{print $2}' | xargs kill -9
ps -aux | grep "/pibot_ros/ros_ws" | grep -v "grep" | awk '{print $2}' | xargs kill -9