![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell running setup in Korn ? | Browser_ice | Shell Programming and Scripting | 4 | 08-14-2006 05:22 PM |
| Help with Korn Shell script | heprox | AIX | 1 | 12-19-2005 11:04 AM |
| korn shell script | pavan_test | UNIX Desktop for Dummies Questions & Answers | 3 | 10-27-2005 09:09 AM |
| korn shell script | pavan_test | UNIX for Dummies Questions & Answers | 1 | 10-26-2005 10:17 AM |
| Multiple su - in Korn Shell script | furrari | Shell Programming and Scripting | 2 | 07-30-2004 06:29 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Korn Shell script not running
I am sorry, this is really trivial, yet I am not able to understand what the problem is!
I am using korn shell and running this script Code:
#!/bin/ksh keep=3 while [ $keep -eq 1 ]; do echo $keep keep=$(($keep-1)) done Code:
`keep=$' unexpected Code:
keep=$(($keep-1)) Please help regarding this. Thanks Asty |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Your script did not generate that error when I ran it. I changed -eq to -ne so it would loop and still no trouble.
|
||||
| Google The UNIX and Linux Forums |