title: how to automate some linux commands
body: <p>I've done a lot of windows command shell scripting but I'm a novice in linux. Is there some way I can script/automate the following commands so that all I have to do is (in windows terminology) "run a batch file" to do all this? Here are my steps, in order:</p>
  
  <ul>
  <li>launch putty, choose hostname &amp; port, click Open (would love to script/automate this 1st part too)</li>
  <li>linux shell/terminal opens</li>
  <li>I enter my login and pwd</li>
  <li>I enter this command: sudo su - psoftXXX</li>
  <li>I enter my pwd again and hit enter</li>
  <li>I am presented with a little cmd-shell menu and a prompt. I have to type "1" and hit enter</li>
  <li>cd /</li>
  <li>cd logs</li>
  <li>cd hr</li>
  <li>cd DV</li>
  <li>cd appserv</li>
  <li>rm JEN*</li>
  <li>ls</li>
  </ul>
  
  <p>Any way to automate all or part of this? THANKS.</p>