Ubuntu下自动启动终端并运行脚本或命令

1、
在这里插入图片描述
在这里插入图片描述

2、command填写示例:gnome-terminal -x /home/river/startupRun.sh

3、startupRun.sh示例

date; sleep 5; date;
gnome-terminal&
/mnt/hgfs/E/river/hikvision/CH_HCNetSDK_Linux64/consoleDemo/linux64/lib/sdkTest
date; sleep 1h; date;
4. sudo chmod 755 startupRun.sh

猜你喜欢

转载自blog.csdn.net/weixin_39354151/article/details/108721310