<?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: Script question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/4782047#M640969</link>
    <description>&lt;!--!*#--&gt;Although I have no PHP knowledge, I think that PHP's syntax was widely taken from Perl.&lt;BR /&gt;&lt;BR /&gt;However, I suspect in the string concatenation which defines the variable $system_string that there is whitespace missing between the curl command and the URL, of course depending on the content of the variable $url.&lt;BR /&gt;So I would suggest rewriting the assignment like this, also repositioning the curl options to be in conformance with Unix command line tradition (though that might not be necessary for the curl command).&lt;BR /&gt;Also there seems to be a superfluous -d option in your assignment because no POST data follows it (see man curl).&lt;BR /&gt;&lt;BR /&gt;$system_string = "curl -d update=notupdated -d area=US -o outputfile ".$url;&lt;BR /&gt;&lt;BR /&gt;I assume that PHP like Perl has a system() function call to which the $system_string variable is supposed to be passed?&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 28 Apr 2011 05:49:36 GMT</pubDate>
    <dc:creator>Ralph Grothe</dc:creator>
    <dc:date>2011-04-28T05:49:36Z</dc:date>
    <item>
      <title>Script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/4782045#M640967</link>
      <description>Hi!&lt;BR /&gt;&lt;BR /&gt;I have a piece of php code which makes a system call to curl command - &lt;BR /&gt;&lt;BR /&gt;$system_string = "curl " . $url . " -d update=notupdated -d area=US -d -o outputfile; &lt;BR /&gt;&lt;BR /&gt;Problem is that the URL variable now points to a diff URL with a different VIP but same URI.&lt;BR /&gt;&lt;BR /&gt;I can run the curl from commandline and it works but not thru the script.&lt;BR /&gt;&lt;BR /&gt;Can you guess what could have gone awry here?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Allan.</description>
      <pubDate>Wed, 27 Apr 2011 19:23:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/4782045#M640967</guid>
      <dc:creator>Allanm</dc:creator>
      <dc:date>2011-04-27T19:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/4782046#M640968</link>
      <description>Hi Allan:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Can you guess what could have gone awry here?&lt;BR /&gt;&lt;BR /&gt;No, can you?  Seriously, this looks like Perl.  Hence:&lt;BR /&gt;&lt;BR /&gt;$system_string = "curl " . $url . " -d update=notupdated -d area=US -d -o outputfile; &lt;BR /&gt;&lt;BR /&gt;...is lacking a closing double quote.&lt;BR /&gt;&lt;BR /&gt;Also, are you sure that '$url' has the value you think it does?&lt;BR /&gt;&lt;BR /&gt;Also, if you call system() with this string, what is the return code you see?&lt;BR /&gt;&lt;BR /&gt;Guessing is fun.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 27 Apr 2011 19:31:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/4782046#M640968</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2011-04-27T19:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/4782047#M640969</link>
      <description>&lt;!--!*#--&gt;Although I have no PHP knowledge, I think that PHP's syntax was widely taken from Perl.&lt;BR /&gt;&lt;BR /&gt;However, I suspect in the string concatenation which defines the variable $system_string that there is whitespace missing between the curl command and the URL, of course depending on the content of the variable $url.&lt;BR /&gt;So I would suggest rewriting the assignment like this, also repositioning the curl options to be in conformance with Unix command line tradition (though that might not be necessary for the curl command).&lt;BR /&gt;Also there seems to be a superfluous -d option in your assignment because no POST data follows it (see man curl).&lt;BR /&gt;&lt;BR /&gt;$system_string = "curl -d update=notupdated -d area=US -o outputfile ".$url;&lt;BR /&gt;&lt;BR /&gt;I assume that PHP like Perl has a system() function call to which the $system_string variable is supposed to be passed?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Apr 2011 05:49:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/4782047#M640969</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2011-04-28T05:49:36Z</dc:date>
    </item>
  </channel>
</rss>

