<?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: Glance file is empty. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/glance-file-is-empty/m-p/4292908#M337066</link>
    <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Probably:&lt;BR /&gt;No variables are being submitted.&lt;BR /&gt;date or awk command are failing because cron jobs have no PATH set.&lt;BR /&gt;&lt;BR /&gt;Set a PATH in your script.&lt;BR /&gt;&lt;BR /&gt;See whence to find PATH&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Thu, 23 Oct 2008 13:21:17 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2008-10-23T13:21:17Z</dc:date>
    <item>
      <title>Glance file is empty.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/glance-file-is-empty/m-p/4292907#M337065</link>
      <description>Hi.&lt;BR /&gt;&lt;BR /&gt;I have is scripts run in crontab. &lt;BR /&gt;&lt;BR /&gt;########################################&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;fecha=`date | awk '{print $1$2$3$4}`&lt;BR /&gt;/opt/perf/bin/glance -f /adm/scripts/glancemonitor$fecha.txt -iterations 1&lt;BR /&gt;&lt;BR /&gt;But the file that generate this scripts is empty. i need help.&lt;BR /&gt;&lt;BR /&gt;Regards,</description>
      <pubDate>Thu, 23 Oct 2008 12:52:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/glance-file-is-empty/m-p/4292907#M337065</guid>
      <dc:creator>Eduard Pinales</dc:creator>
      <dc:date>2008-10-23T12:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Glance file is empty.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/glance-file-is-empty/m-p/4292908#M337066</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Probably:&lt;BR /&gt;No variables are being submitted.&lt;BR /&gt;date or awk command are failing because cron jobs have no PATH set.&lt;BR /&gt;&lt;BR /&gt;Set a PATH in your script.&lt;BR /&gt;&lt;BR /&gt;See whence to find PATH&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 23 Oct 2008 13:21:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/glance-file-is-empty/m-p/4292908#M337066</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2008-10-23T13:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Glance file is empty.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/glance-file-is-empty/m-p/4292909#M337067</link>
      <description>thanks, &lt;BR /&gt;&lt;BR /&gt;But the problem is that file is empty when scripts is finished by cron. all variable are ok, because the file have the date when script finished.</description>
      <pubDate>Thu, 23 Oct 2008 13:50:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/glance-file-is-empty/m-p/4292909#M337067</guid>
      <dc:creator>Eduard Pinales</dc:creator>
      <dc:date>2008-10-23T13:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Glance file is empty.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/glance-file-is-empty/m-p/4292910#M337068</link>
      <description>I've learned to listen to Steven :)&lt;BR /&gt;&lt;BR /&gt;When you cron a job you dont have an environment.&lt;BR /&gt;&lt;BR /&gt;So when the script executes via cron it will not know where date and awk are located.  Thus, the commands will fail.&lt;BR /&gt;&lt;BR /&gt;Try setting a path or explicity call the commands as below&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;fecha=`/sbin/date | /usr/bin/awk '{print $1$2$3$4}`&lt;BR /&gt;/opt/perf/bin/glance -f /adm/scripts/glancemonitor$fecha.txt -iterations 1&lt;BR /&gt;&lt;BR /&gt;Note the path to the date and awk commands may differ on your system as these paths are from my Tru64 system.&lt;BR /&gt;&lt;BR /&gt;if you don't know the path to the command type:&lt;BR /&gt;  which date&lt;BR /&gt;  which awk&lt;BR /&gt;&lt;BR /&gt;It will display where it finds the command...as long as it's in the PATH of the user you're logged in as.&lt;BR /&gt;&lt;BR /&gt;Otherwise use the find command to find where they are.&lt;BR /&gt;&lt;BR /&gt;Cheers</description>
      <pubDate>Thu, 23 Oct 2008 14:09:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/glance-file-is-empty/m-p/4292910#M337068</guid>
      <dc:creator>OFC_EDM</dc:creator>
      <dc:date>2008-10-23T14:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Glance file is empty.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/glance-file-is-empty/m-p/4292911#M337069</link>
      <description>I did. but the problem not solve.&lt;BR /&gt;&lt;BR /&gt;-rw-r--r--1 root sys 0 Oct 23 11:20 glancemonitorThuOct2311:20:00.txt&lt;BR /&gt;&lt;BR /&gt;The script look as follow .&lt;BR /&gt;fecha=`/usr/bin/date | /usr/bin/awk '{print $1$2$3$4}`&lt;BR /&gt;/opt/perf/bin/glance -f /adm/scripts/glancemonitor$fecha.txt -iterations 1&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Thu, 23 Oct 2008 14:27:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/glance-file-is-empty/m-p/4292911#M337069</guid>
      <dc:creator>Eduard Pinales</dc:creator>
      <dc:date>2008-10-23T14:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Glance file is empty.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/glance-file-is-empty/m-p/4292912#M337070</link>
      <description>I think the problem is somewhere else.&lt;BR /&gt;&lt;BR /&gt;Re-direct the error channel to a file!&lt;BR /&gt;&lt;BR /&gt;I assume something like this:&lt;BR /&gt;&lt;BR /&gt;# export TERM=xx&lt;BR /&gt;# glance -f /tmp/t1 -iterations 1&lt;BR /&gt;&lt;BR /&gt;Welcome to Glance&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sorry, I don't know anything about your "xx" terminal.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;IMHO your result will be similar!</description>
      <pubDate>Thu, 23 Oct 2008 14:32:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/glance-file-is-empty/m-p/4292912#M337070</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2008-10-23T14:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Glance file is empty.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/glance-file-is-empty/m-p/4292913#M337071</link>
      <description>See&lt;BR /&gt;&lt;BR /&gt;man glance&lt;BR /&gt;&lt;BR /&gt;on how to run it in background.</description>
      <pubDate>Thu, 23 Oct 2008 14:34:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/glance-file-is-empty/m-p/4292913#M337071</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2008-10-23T14:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Glance file is empty.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/glance-file-is-empty/m-p/4292914#M337072</link>
      <description>Well, it's the output channel, not the error channel.&lt;BR /&gt;&lt;BR /&gt;#  glance -f /tmp/t1 -iterations 1 &amp;gt;/tmp/t2&lt;BR /&gt;# more /tmp/t2&lt;BR /&gt;Sorry, I don't know anything about your "xx" terminal.&lt;BR /&gt;&lt;BR /&gt;Welcome to Glance&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You will probably find related massages in&lt;BR /&gt;&lt;BR /&gt;# more /var/adm/cronlog&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Oct 2008 14:54:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/glance-file-is-empty/m-p/4292914#M337072</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2008-10-23T14:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Glance file is empty.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/glance-file-is-empty/m-p/4292915#M337073</link>
      <description>the problem is same. The file is empty when the cron run the script.</description>
      <pubDate>Thu, 23 Oct 2008 14:58:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/glance-file-is-empty/m-p/4292915#M337073</guid>
      <dc:creator>Eduard Pinales</dc:creator>
      <dc:date>2008-10-23T14:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Glance file is empty.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/glance-file-is-empty/m-p/4292916#M337074</link>
      <description>I'm not sure if you understand - a cronjob has no terminal &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-&amp;gt; glance will not run!&lt;BR /&gt;&lt;BR /&gt;See&lt;BR /&gt;&lt;BR /&gt;man glance&lt;BR /&gt;&lt;BR /&gt;on how to run glance without a terminal (in background).</description>
      <pubDate>Thu, 23 Oct 2008 15:04:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/glance-file-is-empty/m-p/4292916#M337074</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2008-10-23T15:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Glance file is empty.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/glance-file-is-empty/m-p/4292917#M337075</link>
      <description>Glance not run in Background, but exist any flag to help it run in background for example -adviser_only , etc. i put it, but the problem is the same. &lt;BR /&gt;&lt;BR /&gt;Regards,</description>
      <pubDate>Thu, 23 Oct 2008 15:10:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/glance-file-is-empty/m-p/4292917#M337075</guid>
      <dc:creator>Eduard Pinales</dc:creator>
      <dc:date>2008-10-23T15:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Glance file is empty.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/glance-file-is-empty/m-p/4292918#M337076</link>
      <description>Does&lt;BR /&gt;&lt;BR /&gt;# man glance&lt;BR /&gt;&lt;BR /&gt;not work on your system???&lt;BR /&gt;&lt;BR /&gt;I copy a part of this for you:&lt;BR /&gt;&lt;BR /&gt;" To run GlancePlus in the background against  special  adviser  syntax,&lt;BR /&gt;      logging data to a file, you must first create a file that contains the&lt;BR /&gt;      appropriate adviser commands,  then  execute  GlancePlus  with  stdout&lt;BR /&gt;      redirected to a file.  For example:&lt;BR /&gt;           echo 'print gbl_stattime, " runq=", gbl_run_queue' &amp;gt;temp&lt;BR /&gt;           glance -aos ./temp -j 60&amp;gt;outfile &amp;amp;&lt;BR /&gt;"</description>
      <pubDate>Thu, 23 Oct 2008 15:12:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/glance-file-is-empty/m-p/4292918#M337076</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2008-10-23T15:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Glance file is empty.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/glance-file-is-empty/m-p/4292919#M337077</link>
      <description>Ok thanks, &lt;BR /&gt;&lt;BR /&gt;But i need the specific PID. how do i do that ?. not total all. i need to view the utility for every PID.</description>
      <pubDate>Thu, 23 Oct 2008 15:18:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/glance-file-is-empty/m-p/4292919#M337077</guid>
      <dc:creator>Eduard Pinales</dc:creator>
      <dc:date>2008-10-23T15:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Glance file is empty.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/glance-file-is-empty/m-p/4292920#M337078</link>
      <description>I'm curious about whether you get any output from &lt;BR /&gt;&lt;BR /&gt;/opt/perf/bin/glance -iterations 1&lt;BR /&gt;&lt;BR /&gt;Not sure if that's a valid command as I don't have glance available.  Basically I want to know if you get output if you don't specify an output file.&lt;BR /&gt;&lt;BR /&gt;My thought is there's no sense trying to redirect to a file if the base command doesn't provide output.  Could you confirm that  you do get output with the basic command?&lt;BR /&gt;&lt;BR /&gt;Cheers</description>
      <pubDate>Thu, 23 Oct 2008 22:38:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/glance-file-is-empty/m-p/4292920#M337078</guid>
      <dc:creator>OFC_EDM</dc:creator>
      <dc:date>2008-10-23T22:38:09Z</dc:date>
    </item>
  </channel>
</rss>

