title: A shell script on linux is not able to run
body: <p>I am trying to run an shell script on a Linux Ububtu 12.04 LTS server.
  Here is my script:</p>
  
  <pre><code>#!/bin/bash
  PROGRAM=./home/lab/data/setup_exp/Simulator
  FILE_PART_PREFIX="/home/lab/data/pcap_partial/h_"
  FILE_PART_NUM=3
  RECEIVER_SIZE=4096
  SENDER_SIZE=4096
  BETA=0.25
  UPDATE=400
  MARKER=20
  MODE=5
  RESULT_PREFIX="/home/lab/data/setup_exp/size/size_eq4/res_"
  time_part=1200
  if [ ${time_part} -eq 1200 ];then
   nohup ${PROGRAM} 1 ${FILE_PART_PREFIX}${time_part}.pcap ${RECEIVER_SIZE} ${SENDER_SIZE} ${BETA} ${UPDATE} ${MARKER} ${MODE} &gt;&gt; ${RESULT_PREFIX}${time_part} 2&gt;&amp;1 &amp;
  fi
  time_part=1500
  if [ ${time_part} -eq 1500 ];then
  nohup ${PROGRAM} 1 ${FILE_PART_PREFIX}${time_part}.pcap ${RECEIVER_SIZE} ${SENDER_SIZE} ${BETA} ${UPDATE} ${MARKER} ${MODE} &gt;&gt; ${RESULT_PREFIX}${time_part} 2&gt;&amp;1 &amp;
  fi
  time_part=1900
  if [ ${time_part} -eq 1900 ];then
  nohup ${PROGRAM} 1 ${FILE_PART_PREFIX}${time_part}.pcap ${RECEIVER_SIZE} ${SENDER_SIZE} ${BETA} ${UPDATE} ${MARKER} ${MODE} &gt;&gt; ${RESULT_PREFIX}${time_part} 2&gt;&amp;1 &amp;
  fi
  </code></pre>
  
  <p>Then, These are files and sub-directory in the directory of the script above, called sizesetup.sh ： <code>Simulator size sizesetup.sh</code>
  The permission of Simulator and sizesetup.sh are set to 755.</p>
  
  <p>In addition,the input files of Simulator are under <code>/home/lab/data/pcap_partial</code>
  , which are named h_1200, h_1500 and h_1900.</p>
  
  <p>My problem is that I used <code>sh sizesetup.sh</code> to run this script without any error messages popping out. However, the script was not executed (I used 'top'and 'ps' commands to check the state of the script) </p>