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 UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-31-2008
umen umen is offline
Registered User
 

Join Date: Aug 2005
Posts: 231
problem get the value of /usr/ucb/ps -guxww

Hello all
im trying to get the value of:
PHP Code:
/usr/ucb/ps -guxww grep Tomcat grep $USER grep -v grep 
into variable , im using csh .
like this :
PHP Code:
set PS="/usr/ucb/ps -guxww"
set isTomcat = `cat $PS | grep Tomcat | grep $USER | grep -v grep
but im keep geting this error:
PHP Code:
catcannot open -guxww 
how can i get the output right ?
thanks
Reply With Quote
Remove advertisements
!!
Forum Sponsor