<?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: Cannot run command from CGI in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-run-command-from-cgi/m-p/3791122#M781472</link>
    <description>I am using the web-server from the Webmin-tool for UNIX Administration.&lt;BR /&gt;Thank you for the advice!</description>
    <pubDate>Fri, 19 May 2006 03:19:18 GMT</pubDate>
    <dc:creator>Kalin Evtimov</dc:creator>
    <dc:date>2006-05-19T03:19:18Z</dc:date>
    <item>
      <title>Cannot run command from CGI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-run-command-from-cgi/m-p/3791116#M781466</link>
      <description>HI!&lt;BR /&gt;In a cgi-script I am trying to run&lt;BR /&gt;&lt;BR /&gt;system ("/bin/top -d1 &amp;gt; /tmp/top.out");&lt;BR /&gt;&lt;BR /&gt;this doesn't write anything to the file. Why?&lt;BR /&gt;&lt;BR /&gt;Greetings!&lt;BR /&gt;Kalin</description>
      <pubDate>Fri, 19 May 2006 02:35:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-run-command-from-cgi/m-p/3791116#M781466</guid>
      <dc:creator>Kalin Evtimov</dc:creator>
      <dc:date>2006-05-19T02:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot run command from CGI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-run-command-from-cgi/m-p/3791117#M781467</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;try "top -d 1 -f /tmp/top.out"&lt;BR /&gt;&lt;BR /&gt;GOOD LUCK!!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 May 2006 02:37:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-run-command-from-cgi/m-p/3791117#M781467</guid>
      <dc:creator>Warren_9</dc:creator>
      <dc:date>2006-05-19T02:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot run command from CGI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-run-command-from-cgi/m-p/3791118#M781468</link>
      <description>It doesn't seem to ba e syntax problem, because from the command line they both work.</description>
      <pubDate>Fri, 19 May 2006 02:43:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-run-command-from-cgi/m-p/3791118#M781468</guid>
      <dc:creator>Kalin Evtimov</dc:creator>
      <dc:date>2006-05-19T02:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot run command from CGI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-run-command-from-cgi/m-p/3791119#M781469</link>
      <description>Kalin,&lt;BR /&gt;To eliminate any problem with file creation:&lt;BR /&gt;system("echo test &amp;gt; /tmp/top.out");&lt;BR /&gt;if that works at least you have narrowed the problem to the top command.&lt;BR /&gt;Please Update</description>
      <pubDate>Fri, 19 May 2006 03:04:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-run-command-from-cgi/m-p/3791119#M781469</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-05-19T03:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot run command from CGI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-run-command-from-cgi/m-p/3791120#M781470</link>
      <description>system("echo test &amp;gt; /tmp/top.out");&lt;BR /&gt;&lt;BR /&gt;That worked!&lt;BR /&gt;&lt;BR /&gt;What could be wrong with the top command, this is a bit difficult for me..:(</description>
      <pubDate>Fri, 19 May 2006 03:10:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-run-command-from-cgi/m-p/3791120#M781470</guid>
      <dc:creator>Kalin Evtimov</dc:creator>
      <dc:date>2006-05-19T03:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot run command from CGI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-run-command-from-cgi/m-p/3791121#M781471</link>
      <description>No.  You must use -f if you want to send the output of top to a file, or else it will not be readable.&lt;BR /&gt;&lt;BR /&gt;You have not writted how your CGI system command is executed.  Is it from perl?  from awk? from ruby? from python? from php?&lt;BR /&gt;&lt;BR /&gt;the top command is definitely&lt;BR /&gt;"/bin/top -d 1 -f /tmp/top.out"&lt;BR /&gt;&lt;BR /&gt;but if another user has already created that file, length zero, then your www user will not be able to overwrite it.&lt;BR /&gt;&lt;BR /&gt;Check the output file permissions.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 May 2006 03:16:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-run-command-from-cgi/m-p/3791121#M781471</guid>
      <dc:creator>Steve Lewis</dc:creator>
      <dc:date>2006-05-19T03:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot run command from CGI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-run-command-from-cgi/m-p/3791122#M781472</link>
      <description>I am using the web-server from the Webmin-tool for UNIX Administration.&lt;BR /&gt;Thank you for the advice!</description>
      <pubDate>Fri, 19 May 2006 03:19:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-run-command-from-cgi/m-p/3791122#M781472</guid>
      <dc:creator>Kalin Evtimov</dc:creator>
      <dc:date>2006-05-19T03:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot run command from CGI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-run-command-from-cgi/m-p/3791123#M781473</link>
      <description>Kalin,&lt;BR /&gt;so the re-direct works.&lt;BR /&gt;No try and capture any error messages:&lt;BR /&gt;system("/usr/bin/top -d1 &amp;gt; /tmp/top.out 2&amp;gt;&amp;amp;1");&lt;BR /&gt;</description>
      <pubDate>Fri, 19 May 2006 03:22:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-run-command-from-cgi/m-p/3791123#M781473</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-05-19T03:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot run command from CGI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-run-command-from-cgi/m-p/3791124#M781474</link>
      <description>Thank you for your idea Peter!&lt;BR /&gt;Steve's suggestion worked for me, I had to delete the top.out file once, so that it is could be created again from the webserver-user.&lt;BR /&gt;&lt;BR /&gt;Greetings!&lt;BR /&gt;Kalin</description>
      <pubDate>Fri, 19 May 2006 03:24:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-run-command-from-cgi/m-p/3791124#M781474</guid>
      <dc:creator>Kalin Evtimov</dc:creator>
      <dc:date>2006-05-19T03:24:53Z</dc:date>
    </item>
  </channel>
</rss>

