The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 06-04-2008
aju_kup aju_kup is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 189
perl for running ps -ef command

I have following script

HTML Code:
$cmd="ps -ef |";
  open(PSINFO, $cmd) || die "Unable to get ps -ef information from System";
while running script with above lines, it is showing following err


Code:
ps: illegal option -- f
usage: ps [ -aceglnrSuUvwx ] [ -t term ] [ num ]