The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" Lokesha UNIX for Dummies Questions & Answers 4 12-19-2007 09:52 PM
variables don't work for inline "su" script joekreif UNIX for Advanced & Expert Users 3 04-18-2007 01:30 PM
[[ $(date +%Y) == 2007 ]] && echo "Happy New Year" ripat What's on Your Mind? 2 01-02-2007 04:12 AM
How to get Find command work with a variable passing "*" value? unxuser Shell Programming and Scripting 5 08-16-2006 07:47 AM
By angle-brackets/"pipe" button doesn't work? riwa Linux 1 04-02-2006 03:43 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-01-2006
Registered User
 

Join Date: Mar 2006
Posts: 2
Stumble this Post!
Unhappy "IF" i could get this to work i would be HAPPY

Fixed, It works now.

Last edited by CL_KB; 03-01-2006 at 08:42 PM.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-01-2006
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,659
Stumble this Post!
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
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:42 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0