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:
(this line inside .bashrc)
Try putting this into your
.bashrc
:( /root/bin/script1.sh & )
This will execute your script inside a subshell.