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 -->
  #2 (permalink)  
Old 03-01-2006
vino's Avatar
vino vino is offline
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,710
Quote:
Originally Posted by CL_KB

186: if [ "$USER" == "kb" || "$USER" == "bg" || "$USER" == "root" ]

./clmill: line 186: [: missing `]'
./clmill: line 186: root: command not found
./clmill: line 186: root: command not found
./clmill: line 190: cl_view: command not found
Try
Code:
if [[ "$USER" == "kb" || "$USER" == "bg" || "$USER" == "root" ]]
For cl_view: command not found, try invoking it as ./cl_view or qualified/path/to/cl_view
Reply With Quote