根據docs for the Unix "screen" command,您可以在.screenrc中將其配置爲從一堆默認屏幕開始,每個屏幕都運行您指定的命令。如何用命令啓動Unix屏幕命令?
這裏是我的cofig:
# Default screens
screen -t "shell_0" 1
screen -t "autotest" 2 cd ~/project/contactdb ; autotest
它不會運行自動測試命令。我試圖運行的那個窗口autotest
剛剛關閉,當我開始screen
。
我也剛剛試了一下...
screen -t "autotest" 2 cd ~/project/contactdb
相同的結果。
我也試過......
screen -t "autotest" 2 ls
同樣的結果也有。
讓它在啓動時在給定屏幕上運行命令的祕訣是什麼?