title: Getting sudo and nohup to work together
body: <p>Linux newbie here.</p>
  
  <p>I have a perl script which takes two command line inputs. I tried to run it in the background but this is what I got:</p>
  
  <pre><code>[~user]$ nohup sudo ./ascii_loader_script.pl 20070502 ctm_20070502.csv &amp;
  [2] 19603
  [~user]$ nohup: appending output to `nohup.out'
  </code></pre>
  
  <p>after the system returns "nohup: appending output to `nohup.out'", no new prompt will appear. Then as long as I type in some other command, the shell will tell me that the process is stopped:</p>
  
  <pre><code>[~user]$ nohup sudo ./ascii_loader_script.pl 20070502 ctm_20070502.csv &amp;
  [2] 19603
  [~user]$ nohup: appending output to `nohup.out'
  ls
  ascii_loader_script.pl  format_wrds_trd.txt  nohup.out  norm_wrds_trd.cfg
  [2]+  Stopped                 nohup sudo ./ascii_loader_script.pl 20070502 ctm_20070502.csv
  </code></pre>
  
  <p>I've looked at this post and tried to do "sudo date" before executing the command. Still got the same thing.
  <a href="http://www.sudo.ws/pipermail/sudo-users/2003-July/001648.html">http://www.sudo.ws/pipermail/sudo-users/2003-July/001648.html</a></p>