首页 > 其他分享 >通过sh命令打开多个终端并执行指定的命令

通过sh命令打开多个终端并执行指定的命令

时间:2023-03-16 13:34:56浏览次数:43  
标签:bin 1s media cd 命令 sh sleep 终端 nvidia

#!/bin/sh sleep 1s gnome-terminal -t "a" -x bash -c "cd /media/nvidia/3563-3135/exhibiton/web;/usr/bin/python3 app.py;" sleep 1s gnome-terminal -t "b" -x bash -c "cd /media/nvidia/3563-3135/exhibiton/yolo;/usr/bin/python3 detect.py;" sleep 1s gnome-terminal -t "b" -x bash -c "cd /media/nvidia/3563-3135/exhibiton/deepsort;/usr/bin/python3 demo.py;" sleep 1s gnome-terminal -t "b" -x bash -c "cd /media/nvidia/3563-3135/exhibiton/PP-TinyPose/python;/usr/bin/python3 det_keypoint_unite_infer.py;" sleep 1s gnome-terminal -t "b" -x bash -c "cd /media/nvidia/3563-3135/exhibiton/UNet;/home/nvidia/miniforge3/envs/unet/bin/python u_net.py;" sleep 1s gnome-terminal -t "b" -x bash -c "cd /media/nvidia/3563-3135/exhibiton/mediapipe;/home/nvidia/miniforge3/envs/mediapipe/bin/python hand.py;" sleep 1s gnome-terminal -t "b" -x bash -c "cd /media/nvidia/3563-3135/exhibiton/age_and_sex;/usr/bin/python3 run.py;" sleep 1s gnome-terminal -t "b" -x bash -c "cd /media/nvidia/3563-3135/exhibiton/license_plate_recognition;/home/nvidia/miniforge3/envs/torch/bin/python detect.py;"

标签:bin,1s,media,cd,命令,sh,sleep,终端,nvidia
From: https://www.cnblogs.com/bitterteaer/p/17222212.html

相关文章