title: Shell script hangs when i switch to bash - Linux
body: <p>I'm very very new to Linux(coming from windows) and trying to write a script that i can hopefully execute over multiple systems. I tried to use Python for this but fount it hard too. Here is what i have so far:</p>
  
  <pre><code>cd /bin
  bash
  source compilervars.sh intel64
  cd ~
  exit #exit bash
  file= "~/a.out"
  if[! -f "$file"]
  then
  icc code.c
  fi
  
  #run some commands here...
  </code></pre>
  
  <p>The script hangs in the second line (bash). I'm not sure how to fix that or if I'm doing it wrong. Please advice.</p>
  
  <p>Also, any tips of how to run this script over multiple systems on the same network?</p>
  
  <p>Thanks a lot.</p>