<?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: How to get output from glance executed by cgi script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-from-glance-executed-by-cgi-script/m-p/2940039#M113552</link>
    <description>Ross,&lt;BR /&gt;&lt;BR /&gt;I'm getting a bit closer but still no luck.  By creating the user, with a complete user profile and home directory I can run the command as www in a terminal window, however when I run it in other than a terminal window (e.g. cron or via a cgi script) I do not get any output!  The file /tmp/glance.out is 0 bytes!&lt;BR /&gt;&lt;BR /&gt;Is there something I can set to get glance to think a terminal is executing it?</description>
    <pubDate>Fri, 04 Apr 2003 16:55:10 GMT</pubDate>
    <dc:creator>Jerry Weiss</dc:creator>
    <dc:date>2003-04-04T16:55:10Z</dc:date>
    <item>
      <title>How to get output from glance executed by cgi script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-from-glance-executed-by-cgi-script/m-p/2940032#M113545</link>
      <description>I have glance on an 11i system.  We have apache configured to allow for sysadmins to monitor the system.  &lt;BR /&gt;&lt;BR /&gt;My cgi script executes:&lt;BR /&gt;export HOME=/tmp&lt;BR /&gt; /opt/perf/bin/glance -iterations 2 -all_trans -adviser_only -f /tmp/glance.out 2&amp;gt;/dev/null; cat /tmp/glance.o&lt;BR /&gt;ut&lt;BR /&gt;&lt;BR /&gt;Note: its being executed as user www.&lt;BR /&gt;&lt;BR /&gt;I'd like to get the output from glance (as excuted from a cgi script) but I always get the message :&lt;BR /&gt;&lt;BR /&gt;WARNING: Unable to open ".glancerc_hp", "adviser.out", and "glance.err".&lt;BR /&gt;         Either your $HOME environment is not defined or there is no write  &lt;BR /&gt;         access to your $HOME directory.  GlancePlus cannot save data to    &lt;BR /&gt;         customize configuration, or to adviser output or to an error log.  &lt;BR /&gt;         To correct this problem set $HOME to a directory with write        &lt;BR /&gt;         permission and re-start GlancePlus.  &lt;BR /&gt;         If you don't make this change GlancePlus will continue without     &lt;BR /&gt;         these functions.&lt;BR /&gt;&lt;BR /&gt;          &lt;PRESS return="" key="" to="" continue=""&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Does anyone have a suggestion how to fix this?&lt;BR /&gt;&lt;BR /&gt;Thank you in advance,&lt;BR /&gt;&lt;/PRESS&gt;</description>
      <pubDate>Mon, 31 Mar 2003 22:55:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-from-glance-executed-by-cgi-script/m-p/2940032#M113545</guid>
      <dc:creator>Jerry Weiss</dc:creator>
      <dc:date>2003-03-31T22:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to get output from glance executed by cgi script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-from-glance-executed-by-cgi-script/m-p/2940033#M113546</link>
      <description>ps -ef | grep glance&lt;BR /&gt;&lt;BR /&gt;watch for the PID&lt;BR /&gt;&lt;BR /&gt;kill &lt;PID&gt;&lt;BR /&gt;&lt;BR /&gt;or if its sticky&lt;BR /&gt;&lt;BR /&gt;kill -9 &lt;PID&gt;&lt;BR /&gt;&lt;BR /&gt;This might nail other processes owned by www.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/PID&gt;&lt;/PID&gt;</description>
      <pubDate>Mon, 31 Mar 2003 22:59:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-from-glance-executed-by-cgi-script/m-p/2940033#M113546</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-03-31T22:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get output from glance executed by cgi script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-from-glance-executed-by-cgi-script/m-p/2940034#M113547</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;It looks like Glance is complaining because your 'www' user does not have a valid $HOME directory.  Can your 'www' user write to /tmp?&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Mar 2003 23:05:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-from-glance-executed-by-cgi-script/m-p/2940034#M113547</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-03-31T23:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to get output from glance executed by cgi script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-from-glance-executed-by-cgi-script/m-p/2940035#M113548</link>
      <description>Hi Jerry,&lt;BR /&gt;&lt;BR /&gt;Can you run this script manually and see if it prints anything? &lt;BR /&gt;&lt;BR /&gt;Why are you setting $HOME to /tmp?.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Tue, 01 Apr 2003 02:39:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-from-glance-executed-by-cgi-script/m-p/2940035#M113548</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2003-04-01T02:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to get output from glance executed by cgi script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-from-glance-executed-by-cgi-script/m-p/2940036#M113549</link>
      <description>Sri, John,&lt;BR /&gt;&lt;BR /&gt;I did the export HOME=/tmp to insure that www had write permission to create the files.glancerc_hp, adviser.out and glance.err.&lt;BR /&gt;&lt;BR /&gt;I did an su - www (from root) and ran the command and it behaves the same (I had done this prior to posting to the forum), the user www had no problem manually touching, deleting, etc. the files /tmp/.glancerc_hp, /tmp/adviser.out and /tmp/glance.err&lt;BR /&gt;&lt;BR /&gt;I also modified www's default directory (in /etc/passwd) just to make damn sure and I still have the same problem.&lt;BR /&gt;&lt;BR /&gt;However the WARNING from glance still appears! and it still waits for a Return key to continue.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Apr 2003 13:46:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-from-glance-executed-by-cgi-script/m-p/2940036#M113549</guid>
      <dc:creator>Jerry Weiss</dc:creator>
      <dc:date>2003-04-01T13:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get output from glance executed by cgi script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-from-glance-executed-by-cgi-script/m-p/2940037#M113550</link>
      <description>Why not just creat a "real" home directory for user www?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 01 Apr 2003 13:56:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-from-glance-executed-by-cgi-script/m-p/2940037#M113550</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-04-01T13:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to get output from glance executed by cgi script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-from-glance-executed-by-cgi-script/m-p/2940038#M113551</link>
      <description>Jerry,&lt;BR /&gt;&lt;BR /&gt;I was able to duplicate and fix your issue.&lt;BR /&gt;&lt;BR /&gt;1.  Create /home/www with appropriate permissions&lt;BR /&gt;&lt;BR /&gt;2. create glance-cgi in your cgi-bin:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;set -x&lt;BR /&gt;print 'Content-type: text/html\n\n';&lt;BR /&gt;export HOME=/home/www&lt;BR /&gt;/opt/perf/bin/glance -iterations 2 -all_trans -bootup -adviser_only -f /tmp/glan&lt;BR /&gt;ce.out;cat /tmp/glance.out&lt;BR /&gt;&lt;BR /&gt;3. Make sure it is executable.&lt;BR /&gt;&lt;BR /&gt;4.  http://yourhost/cgi-bin/glance-cgi&lt;BR /&gt;&lt;BR /&gt;Viola.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;RZ&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Apr 2003 14:52:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-from-glance-executed-by-cgi-script/m-p/2940038#M113551</guid>
      <dc:creator>Ross Zubritski</dc:creator>
      <dc:date>2003-04-01T14:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to get output from glance executed by cgi script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-from-glance-executed-by-cgi-script/m-p/2940039#M113552</link>
      <description>Ross,&lt;BR /&gt;&lt;BR /&gt;I'm getting a bit closer but still no luck.  By creating the user, with a complete user profile and home directory I can run the command as www in a terminal window, however when I run it in other than a terminal window (e.g. cron or via a cgi script) I do not get any output!  The file /tmp/glance.out is 0 bytes!&lt;BR /&gt;&lt;BR /&gt;Is there something I can set to get glance to think a terminal is executing it?</description>
      <pubDate>Fri, 04 Apr 2003 16:55:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-from-glance-executed-by-cgi-script/m-p/2940039#M113552</guid>
      <dc:creator>Jerry Weiss</dc:creator>
      <dc:date>2003-04-04T16:55:10Z</dc:date>
    </item>
  </channel>
</rss>

