<?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: Shell script problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-problem/m-p/3150348#M900657</link>
    <description>Hi,&lt;BR /&gt;please show us the lines used in the script.&lt;BR /&gt; &lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
    <pubDate>Sun, 21 Dec 2003 12:23:06 GMT</pubDate>
    <dc:creator>john korterman</dc:creator>
    <dc:date>2003-12-21T12:23:06Z</dc:date>
    <item>
      <title>Shell script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-problem/m-p/3150345#M900654</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have a little problem in my script.&lt;BR /&gt;I'm trying to run omnidb command with next parameters:&lt;BR /&gt;-filesystem serv1:/opt/alex 'serv1:/opt/alex'&lt;BR /&gt;&lt;BR /&gt;for some reason, when&lt;BR /&gt;x="serv1:/opt/alex"&lt;BR /&gt;y="'serv1:/opt/alex'"&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;x="serv1:/opt/alex 'serv1:/opt/alex'"&lt;BR /&gt;&lt;BR /&gt;it does not run properly.&lt;BR /&gt;in debug mode (sh -x), I see the command that it's tryng to run and it looks correct, even if I copy&amp;amp;paste it to the command line it works, but from the script itself it does not.&lt;BR /&gt;The proble I think is in '. But every thing I tried to do with " or sed or whatever does not fix the problem ...&lt;BR /&gt;&lt;BR /&gt;any ideas?&lt;BR /&gt;&lt;BR /&gt;thanx.</description>
      <pubDate>Sun, 21 Dec 2003 07:06:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-problem/m-p/3150345#M900654</guid>
      <dc:creator>Alex Lavrov</dc:creator>
      <dc:date>2003-12-21T07:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-problem/m-p/3150346#M900655</link>
      <description>omniback has logs, there might be an error.&lt;BR /&gt;&lt;BR /&gt;What shell are you using?&lt;BR /&gt;&lt;BR /&gt;omniback can be scripted, but lots of people think the GUI does just fine (Bill Hassell: read sysadmins don't use GUI's).&lt;BR /&gt;&lt;BR /&gt;Maybe post the sh -x output?&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sun, 21 Dec 2003 10:23:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-problem/m-p/3150346#M900655</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-12-21T10:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-problem/m-p/3150347#M900656</link>
      <description>Hi.&lt;BR /&gt;&lt;BR /&gt;I did not test it but i think this will elininate the ' in yu vars.&lt;BR /&gt;&lt;BR /&gt;y=`echo $y | sed s'/\'//'`&lt;BR /&gt;x=`echo $x | sed s'/\'//'`&lt;BR /&gt;&lt;BR /&gt;Gideon</description>
      <pubDate>Sun, 21 Dec 2003 12:14:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-problem/m-p/3150347#M900656</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2003-12-21T12:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-problem/m-p/3150348#M900657</link>
      <description>Hi,&lt;BR /&gt;please show us the lines used in the script.&lt;BR /&gt; &lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Sun, 21 Dec 2003 12:23:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-problem/m-p/3150348#M900657</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2003-12-21T12:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-problem/m-p/3150349#M900658</link>
      <description>Hi,&lt;BR /&gt;I have had some problems with those ' in the label too. Here is one solution I have used:&lt;BR /&gt;&lt;BR /&gt;store the label in a variable without any '&lt;BR /&gt;&lt;BR /&gt;in the command line, fubstitute the label with&lt;BR /&gt;&lt;BR /&gt;$(echo "'"$label"'")&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 21 Dec 2003 13:29:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-problem/m-p/3150349#M900658</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2003-12-21T13:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-problem/m-p/3150350#M900659</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;why do you use no quotes for the first parameter and quotes for the second one. Could you post the command, you try to run and any error messages?&lt;BR /&gt;&lt;BR /&gt;greetings,&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Sun, 21 Dec 2003 18:46:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-problem/m-p/3150350#M900659</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2003-12-21T18:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-problem/m-p/3150351#M900662</link>
      <description>Well, looks like it works without quotes too .... strange, I thought I tried it. but probably not.&lt;BR /&gt;&lt;BR /&gt;thanx all for your replies, &lt;BR /&gt;Merry Christmas or Hanukah! :)</description>
      <pubDate>Mon, 22 Dec 2003 01:57:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-problem/m-p/3150351#M900662</guid>
      <dc:creator>Alex Lavrov</dc:creator>
      <dc:date>2003-12-22T01:57:47Z</dc:date>
    </item>
  </channel>
</rss>

