我有这样的脚本:
/root/bin/script1.sh
把这行放在.bashrc里面
/root/bin/script1.sh &
script1.sh不运行 – 问题是&。 没有“&”脚本运行完美
命令testing:
/root/bin/script1.sh & disown
(这行在.bashrc里面)
尝试把这个到你的.bashrc :
( /root/bin/script1.sh & )
这将在一个子shell中执行你的脚本。