I have two bash scripts running simultaneously, which are identical apart from two things.Apart from a few other setup pieces they run the following entry:ssh ${target_server} bash -s < ${target_script} > ${home_dir}/logs/${instance_name}.log 2> ${home_dir}/logs/${instance_name}.err &The only differences between the two scripts are the IP Address passed into the ${target_server} variable and the ${instance_name} variable.So expanded it would look something like this:In local_script1: target_script=target_script1.shssh 10.1.2.3 bash -s < ${target_script} > /home/user/logs/script1.log 2> /home/user/logs/script1.err &In local_script2:target_script=target_script2.shssh 10.1.2.4 bash -s < ${target_script} > /home/user/logs/script2.log 2> /home/user/logs/script2.err &    The target_scripts are again two separate bash files which are identical apart from a few key variables relating to paths on the relevant server.Is it possible, that although they are running on separate servers, that there is some crossover of the variables being set.e.g. if I set myVar=1 in target_script1 could it be picked up by target_script2? Or (am I right in thinking) that because each one is opening an SSH connection to the 'remote' server first the variables ONLY exist on the remote servers, and not the local one.  
Variable Crossover in multiple bash scripts?
bash;ssh;variable