<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Scripting problem - quotes inside quotes in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem-quotes-inside-quotes/m-p/2751031#M70195</link>
    <description>Have you tried single and double quotes?&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Marty</description>
    <pubDate>Mon, 24 Jun 2002 18:42:48 GMT</pubDate>
    <dc:creator>Martin Johnson</dc:creator>
    <dc:date>2002-06-24T18:42:48Z</dc:date>
    <item>
      <title>Scripting problem - quotes inside quotes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem-quotes-inside-quotes/m-p/2751030#M70194</link>
      <description>I am having real problems scripting a relatively simple OmniBack Command,...&lt;BR /&gt;&lt;BR /&gt;I read the list of Objects from an OmniBack Backup, including the File System and the Description (which is enclosed in quotes), and then try to find the media for that File System.&lt;BR /&gt;&lt;BR /&gt;The format of the command is&lt;BR /&gt;&lt;BR /&gt;print $OBJ0 # File System spec&lt;BR /&gt;print $OBJ1 # Label&lt;BR /&gt;omnidb -session $SESSION -filesystem $OBJ0 $OBJ1 -media&lt;BR /&gt;&lt;BR /&gt;This consistently comes up with 'Object not found', yet when I do a 'set -x' and drag and drop the resultant command into the shell, it works fine.&lt;BR /&gt;&lt;BR /&gt;Things I have tried include,..&lt;BR /&gt;1. Running inside the script shell, rather than the backquote command&lt;BR /&gt;2. Removing the single quotes from the OBJ1 (Label) variable&lt;BR /&gt;(this works on the command line)&lt;BR /&gt;3. Putting backslashes before the quotes&lt;BR /&gt;4. Kicking the computer repeatedly.&lt;BR /&gt;&lt;BR /&gt;Anyone else fancy a go?&lt;BR /&gt;&lt;BR /&gt;Share and Enjoy! Ian&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Jun 2002 18:36:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem-quotes-inside-quotes/m-p/2751030#M70194</guid>
      <dc:creator>Ian Dennison_1</dc:creator>
      <dc:date>2002-06-24T18:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting problem - quotes inside quotes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem-quotes-inside-quotes/m-p/2751031#M70195</link>
      <description>Have you tried single and double quotes?&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Marty</description>
      <pubDate>Mon, 24 Jun 2002 18:42:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem-quotes-inside-quotes/m-p/2751031#M70195</guid>
      <dc:creator>Martin Johnson</dc:creator>
      <dc:date>2002-06-24T18:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting problem - quotes inside quotes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem-quotes-inside-quotes/m-p/2751032#M70196</link>
      <description>One kind of fancy way that I can think of is&lt;BR /&gt;&lt;BR /&gt;echo "omnidb -session $SESSION -filesystem $OBJ0 $OBJ1 -media" &amp;gt;&amp;gt; /tmp/cmd$$&lt;BR /&gt;&lt;BR /&gt;sh /tmp/cmd$$ &amp;gt; log_somewhere 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;rm /tmp/cmd$$&lt;BR /&gt;&lt;BR /&gt;See if it works??&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Mon, 24 Jun 2002 18:55:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem-quotes-inside-quotes/m-p/2751032#M70196</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-06-24T18:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting problem - quotes inside quotes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem-quotes-inside-quotes/m-p/2751033#M70197</link>
      <description>Martin,&lt;BR /&gt;&lt;BR /&gt;yep, tried single and double, backslash (one and two of), in just about every combination.&lt;BR /&gt;&lt;BR /&gt;Sridhar,&lt;BR /&gt;&lt;BR /&gt;Managed to try that just now. Thanks for the answer, it works but it feels like there is a more 'elegant' solution  out there, that does not require spawning a new shell.&lt;BR /&gt;&lt;BR /&gt;Thanks, Ian</description>
      <pubDate>Mon, 24 Jun 2002 19:00:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem-quotes-inside-quotes/m-p/2751033#M70197</guid>
      <dc:creator>Ian Dennison_1</dc:creator>
      <dc:date>2002-06-24T19:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting problem - quotes inside quotes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem-quotes-inside-quotes/m-p/2751034#M70198</link>
      <description>You could try eval omnidb -session $SESSION -filesystem $OBJ0 $OBJ1 -media</description>
      <pubDate>Tue, 25 Jun 2002 03:23:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem-quotes-inside-quotes/m-p/2751034#M70198</guid>
      <dc:creator>Jonathan Baker</dc:creator>
      <dc:date>2002-06-25T03:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting problem - quotes inside quotes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem-quotes-inside-quotes/m-p/2751035#M70199</link>
      <description>From a perl script you can use $ENV{BLAH} to access the environment variable $BLAH, and mix double quotes and single quotes like in the shell.&lt;BR /&gt;&lt;BR /&gt;print "Env \$BLAH is $ENV{BLAH}\n";&lt;BR /&gt;&lt;BR /&gt;but perl also has two `operators' for strings with quotes that would make things hard to parse/read otherwise: q// (single quotes) and qq// (double quotes). Equivalent to the shell's backticks (same in perl), it offers the qx// operator and the system () command&lt;BR /&gt;&lt;BR /&gt;chomp (my $pwd = `pwd`);&lt;BR /&gt;print q{Today is }, qx{date};&lt;BR /&gt;print "Today is ", scalar localtime time;&lt;BR /&gt;print qq{Env "\$BLAH" is '$ENV{BLAH}'\n};&lt;BR /&gt;&lt;BR /&gt;so ...&lt;BR /&gt;&lt;BR /&gt;Given your example, I still don't know what you want exactly, but does not seem to be that much of a problem.</description>
      <pubDate>Tue, 25 Jun 2002 04:55:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem-quotes-inside-quotes/m-p/2751035#M70199</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-06-25T04:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting problem - quotes inside quotes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem-quotes-inside-quotes/m-p/2751036#M70200</link>
      <description>Hi !&lt;BR /&gt;&lt;BR /&gt;You don't need the quotes to query the db - so remove them:&lt;BR /&gt;&lt;BR /&gt;OBJ1=$( echo $OBJ1 | sed "s/'//g")&lt;BR /&gt;&lt;BR /&gt;hdh&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Jul 2002 16:09:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-problem-quotes-inside-quotes/m-p/2751036#M70200</guid>
      <dc:creator>Plank Guenther</dc:creator>
      <dc:date>2002-07-10T16:09:33Z</dc:date>
    </item>
  </channel>
</rss>

