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 -->
  #5 (permalink)  
Old 05-14-2004
LordJezo LordJezo is offline
Registered User
 

Join Date: May 2004
Posts: 45
Script looks like this:

#!/bin/sh
if [ $( ps -ef | grep wtrs | wc -l ) -gt "3" ];
then
echo its running things
else
echo it can be shut down
fi


error it gets when run:

syntax error at line 2: `(' unexpected

Reply With Quote