Automatically start the terminal and run scripts or commands under Ubuntu

1、
Insert picture description here
Insert picture description here

2. Example for filling in command: gnome-terminal -x /home/river/startupRun.sh

3. Example of 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

Guess you like

Origin blog.csdn.net/weixin_39354151/article/details/108721310