0
我是新手腳本編寫者。使用gnome終端獲取新標籤
我在我的項目中使用了下面的代碼,但終端正在立即關閉。我想要保持終端並繼續運行
#!/bin/bash/
gnome-terminal --tab --working-directory="/home/sandhya/OpenBTS/public/openbts/trunk/apps/" -e "file = grep OpenBTS /home/sandhya/OpenBTS/public/openbts/trunk/apps \
if [ -f $file ] \
then \
echo " file exits" \
sudo "/home/sandhya/OpenBTS/public/openbts/trunk/apps/OpenBTS" \
fi"
我希望終端保持並繼續運行應用程序。
如果我使用的方法或語法錯誤,請糾正我的錯誤。