gnome-terminal窗口执行命令后停留而不立刻关闭
gnome-terminal窗口执行命令后停留而不立刻关闭
末尾加上exec bash
例如
gnome-terminal -t "gazebo" -- bash -c "cd ~/catkin_ws; source devel/setup.bash; roslaunch turtlebot3_gazebo turtlebot3_world.launch; exec bash"
sleep 2
gnome-terminal -t "rviz" -- bash -c "cd ~/catkin_ws; source devel/setup.bash; roslaunch active_slam active_slam.launch; exec bash"
本文是原创文章,采用 CC BY-NC-ND 4.0 协议,完整转载请注明来自 刘哥还在学