I've a script like this:
/root/bin/script1.sh
putting this line inside .bashrc
/root/bin/script1.sh &
script1.sh
does not run - the problem is &. Without "&" the script run perfectly
I've a script like this:
/root/bin/script1.sh
putting this line inside .bashrc
/root/bin/script1.sh &
script1.sh
does not run - the problem is &. Without "&" the script run perfectly
command tested:
/root/bin/script1.sh & disown
(this line inside .bashrc)
Try putting this into your .bashrc
:
( /root/bin/script1.sh & )
This will execute your script inside a subshell.
~/.bashrc
of all things? This gets loaded with every connection... – Sven♦ Nov 14 '15 at 9:55