title: started from command line?
body: <p>I have a simple C/CPP process running on a linux system. This is a.out.</p>
  
  <p>Another process is capable to start a.out inside its code. This is b.out.</p>
  
  <p>What code do I need inside a.out to understand that it is executed from the command line?
  Eg ./a.out</p>
  
  <p>Is there a way a process to know if it started from the cmd or started from another process?</p>