1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Rep Power

    Unable to pass complete string to the shell script

    this may be a basic question.

    I managed to generate a random password using SAP application and passing this pwd to a unix script on SunOS.
    original string passing from SAP: X/ULnaStM~c=Rzv<)WoGWY%giw7K+Us+aTbs\5E}

    however when I echo this string it's showing upto X/ULnaStM~c

    it's not able to show rest of the word starting with = sign.

    is there any way you can help me how do we let the compiler know this is a string but not a value. Please advise.
  2. #2
  3. Contributed User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2005
    Rep Power
    Are there any restrictions on the characters that can be in the password?

    A single quote character is usually needed in these cases.
    $ echo '"hello$=world!"'
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper

IMN logo majestic logo threadwatch logo seochat tools logo