![]() |
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 |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| when executing .sh script in telnet error "script not found" | smiley | Shell Programming and Scripting | 1 | 04-22-2008 02:01 PM |
| Error in the script | krworks | Shell Programming and Scripting | 5 | 04-18-2008 02:31 AM |
| awk Shell Script error : "Syntax Error : `Split' unexpected | Herry | UNIX for Dummies Questions & Answers | 2 | 03-17-2008 11:16 AM |
| Script error | Katkota | UNIX for Dummies Questions & Answers | 3 | 01-22-2008 06:02 PM |
| error in awk script | rraajjiibb | Shell Programming and Scripting | 7 | 06-10-2004 08:37 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Script Error if ... then
I am trying to debug a script. I am getting the error following errors from the code listed below. I am working in Korn shell in a Sun Solaris UNIX environment.
**************** ** Error Message ** **************** Code:
$ statreports.sh 0030 1327 ./statreports.sh[29]: if[2: not found ./statreports.sh[30]: syntax error at line 31 : `then' unexpected ******************* ** Code Causing Error ** ******************* Code:
# Check if the second command argument is exists. if["$#" < 2] then ((endTime = $startTime + 28800)) # Add 8 hours = 28800 seconds . . . fi |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|