Results 1 to 2 of 2

Thread: Shell Script problem using double quotes inside double quotes and storing in variable

  1. #1
    Join Date
    Feb 2013
    Beans
    2

    Shell Script problem using double quotes inside double quotes and storing in variable

    Hi,
    I have a problem in using double quotes inside double quotes as follows:--
    s1="-r printer:sanjay=\"HP LaserJet 1018\""

    Whenever i am using the value of variable s1 inside command as follows:--
    rdesktop -u administrator -p admin $s1 ip-address

    the command is not executing as expected..

    But if i am writing it directly like:--
    rdesktop -u administrator -p admin -r printer:sanjay="HP LaserJet 1018"ip-address

    its working fyn..

    plz help me to getting out of this stuff..

  2. #2
    Join Date
    Nov 2008
    Location
    Storybrooke
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Shell Script problem using double quotes inside double quotes and storing in vari

    closed -please do not post multiple threads on the same subject as this dilutes community effort.

    Thanks!

    http://ubuntuforums.org/showthread.php?t=2117719
    Ubuntu Forums Moderation Staff
    Okay then. We're relying on mirror dust and fairies but now we have a plan which is progress - Emma

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •