![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help in error seen in the Bash script | ahjiefreak | Shell Programming and Scripting | 2 | 01-22-2008 03:38 AM |
| Bash Script error? | JayC89 | Shell Programming and Scripting | 13 | 10-04-2007 04:32 PM |
| Bash while loop problem | Kweekwom | Shell Programming and Scripting | 5 | 07-23-2007 12:49 AM |
| loop does not execute in bash script? | fedora | Shell Programming and Scripting | 2 | 01-16-2007 12:38 PM |
| Simple bash for loop problem | kingdbag | Shell Programming and Scripting | 4 | 09-15-2006 01:00 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
error in bash script 'if' loop
SEND_MESSAGE=test
echo $SEND_MESSAGE if [ $SEND_MESSAGE -eq test ] then echo `date` > update_dt_ccaps.lst echo "The file transfer failed" >> update_dt_ccaps.lst SEND_MESSAGE=false fi The above code is showing error in bash shell as : ./test: line 5: [: test: integer expression expected But it was not showing any error in ksh.I am compelled to use the bash shell itself. Would anyone please advise. With Regards Dileep |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|