title: Using putty -m option gives 'command not found'
body: <p>If I open a shell into a machine with: <code>putty -load session_name</code> and then execute a command to add a job to a Grid queue on a linux system (<code>qsub -cwd -b hostname</code>), everything works fine.</p>
  
  <p>But if I add the command to a text file, and then do <code>putty -load session_name -m file.txt</code>, I get <code>qsub: command not found</code></p>
  
  <p>If I back out and simplify the text file to be only the command <code>hostname</code> and use the -m option, it also works fine.</p>
  
  <p>If I use the Connection->SSH->Remote command, and do something similar as the -m command, I get the same results as from the command line.</p>
  
  <p>I'm very much a novice at linux systems, and this seems like it should be a simple fix to tell something that 'qsub' exists somewhere. Either that or there are some restrictions on these remote access things...</p>
  
  <p>Edit: </p>
  
  <p>Ok, so the initial question was how to run it--and I figured that out (add an absolute path), but there are other environment variable issues as well. It appears that <code>qsub</code> requires the <code>SGE_ROOT</code> variable to be set, but that isn't set for the remote commands window either. </p>
  
  <p>So, a better question is, how do I get the putty remote commands shell (using -m) to open with the same properties and setup as a manual command line shell?</p>