title: Using lsof to get a list of file names
body: <p><strong>EDIT 1</strong></p>
  
  <p>I'm having problems using the arguments given. Maybe it is the way I'm passing my arguments through NSTask? Any suggestions as to how I can do this?</p>
  
  <pre><code>NSTask *file_Task = [NSTask new];
  [file_Task setLaunchPath:@"/usr/sbin/lsof"];
  [file_Task setArguments:[NSArray arrayWithObjects:@"+p", the_Pid, nil]];
  </code></pre>
  
  <hr>
  
  <p>Good Afternoon Fellow Coders....</p>
  
  <p>I'm using the following command:</p>
  
  <pre><code>lsof +p 13812
  </code></pre>
  
  <p>to get the list of a files accessed by a process. The thing is it is giving me a lot of additional information that I don't want such as TYPE, DEVICE, etc. </p>
  
  <p>Is there an argument that I can add to the above command so that I get <strong>ONLY</strong> the <strong>NAME</strong>?</p>
  
  <p>Thank you, thank you thank you! :)</p>
  
  <p>Eric </p>