title: Read a text file contents from second line in python
body: <p>I wrote a python code which executes the bash command and save the output in txt file, now i want to read the txt file which actually contains details from line 2 always, and print true if output exists and send a mail to the user.</p>
  
  <p>Looking for a further solution how I can read specific second line output of file output.txt and print true if the line exists to send a mail to the user otherwise goodbye.</p>
  
  <p>Am very new to this approach, please help with your guidance.
  TIA. </p>
  
  <pre><code>import subprocess
  p = subprocess.Popen("bash command &gt; output.txt", stdout=subprocess.PIPE, shell=True)
  (output, err) = p.communicate()
  p_status = p.wait()
  print "command exit status/return code: ", p_status
  </code></pre>
  
  <p>Above code prints the output in the txt file in the below format</p>
  
  <pre><code>PID  PPID %CPU     ELAPSED COMMAND
  3435 1     0       4-05:20:09 
  </code></pre>
  
  <p>Requirement: Read from <code>"3435 1   0  4-05:20:09 "</code> this line and print true as line exist and send a mail to user. If not output after  <code>"PID  PPID %CPU     ELAPSED COMMAND"</code> it should send no mail</p>