Error-- : " bad string"

Hi All,

wen i am running a script . its giveing the below error and hanging there

Bad string

*******************

                    Please enter the following details one by one
                    \---------------------------------------------
                             First name : Sanjay
                              Last name : Acharya
                                    SSO : 501224845
                    Case Number  : H033109_5417426

############## Choice of Type of User ID ################

  1. Normal User ID
  2. Batch User ID
    Please Enter the Choice : 1
    Checking any ID existing with the entered SSO(501224845)
    --------------------------------------------------------
    Bad string

Although on all other servers its working fine.
Thanx in Advance

Please post the script that is giving you problems.

Thanks cfajohnson.

actually script is very long ( 1500 lines) .
actualy its working fine on all others servers (55 servers).

I am not getting the root cause of not working of it.

as te servre is also solaris 10. E25 K.

please let me know if you get something on it.

On Solaris, there's a good chance that the script requires a POSIX shell, but is running /bin/sh, which is not a standard shell on Solaris. Try running it with /usr/xpg4/bin/sh instead.

If that doesn't help, post an extract of the script that displays the problem.

Thanks sir.
with this shell, did not get that error. But getting beow error

./createid.sh[103]: userid=${fname:0:1}${lname:0:7}: bad substitution

fname : its taking first letter of first name
lname : its taking 7 letters of last name

this looks like a /usr/bin/bash

Hi vgersh99,

Yep . This syntax works fine in /bin/bash