title: To get process age or elapsed time in linux from ps command
body: <p>i also want elapsed time in below output.Since how many hour loader.pl job is running.</p>
  
  <pre><code>[etl@etl3(8) ~]$ ps -ef | grep loader.pl
  etl      573398      1  2 07:36 ?        00:00:00 /usr/bin/perl -w              /opt/etl/pm_samsung_lte_csl//bin/csls-loader.pl --task etl3.gphd.local-1
  etl      574203 324544  0 07:36 pts/9    00:00:00 grep --color loader.pl
  </code></pre>
  
  <p>but when i am running command like below to get all the process elapsed time..i didn't get the loder.pl process id itself</p>
  
  <pre><code>[etl@etl3(8) ~]$ ps -eo pid,etime,comm
  Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
  PID     ELAPSED COMMAND
  324544    02:12:51 bash
  574205       00:05  \_ bash
  574206       00:05  |   \_ logger
  574345       00:01  \_ ps
  [etl@etl3(8) ~]$
  </code></pre>
  
  <p>i am not getting desired loader.pl process id's</p>