title: Redirect nohup to stdout on a script
body: <p>I have a <code>.sh</code> script that via <code>nohup</code> runs a lot of Python scripts.</p>
  
  <p>I use <code>nohup</code> to run them in the background and avoid neccesary <em>enter</em> pressing when the "<em>nohup: ignoring input and appending output to 'nohup.out'</em>" message appears.</p>
  
  <pre><code>nohup python script2.py 2&gt; /dev/null &amp;
  nohup python script2.py 2&gt; /dev/null &amp;
  [...]
  </code></pre>
  
  <p>When I run this <code>.sh</code>, I get the two Python scripts running in the background, ok.</p>
  
  <p>This Python scripts generate a log file, which I deriver to <code>std.stdout</code>:</p>
  
  <pre><code>stream_config = logging.StreamHandler(sys.stdout)  &lt;-- here
  stream_config.setFormatter(formatter)
  importer_logger.addHandler(stream_config)  
  </code></pre>
  
  <p>Due to my implementation, I want to launch those <code>nohup</code> but sending the stdout to to PID 1</p>
  
  <p>I can do this easily without using <code>nohup</code> as follows:</p>
  
  <pre><code>python tester.py &gt; /proc/1/fd/1
  </code></pre>
  
  <p>But how can I combine that "<em>don't press enter to continue</em>" and "<em>deriver the file to stdout</em>"?</p>
  
  <p>I tried these with no luck:</p>
  
  <pre><code>nohup python tester.py &gt; /proc/1/fd/1 2&gt; /dev/null &amp;
  nohup python tester.py 2&gt; /proc/1/fd/1 &amp;
  </code></pre>
  
  <p>Thanks in advance.</p>