<?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 and Date Changing in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/glance-and-date-changing/m-p/3407713#M202041</link>
    <description>Thanks to all for replying.&lt;BR /&gt;&lt;BR /&gt;I will be using a combination of the solutions provided.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;Mahesh</description>
    <pubDate>Tue, 26 Oct 2004 07:58:14 GMT</pubDate>
    <dc:creator>Mahesh Babbar</dc:creator>
    <dc:date>2004-10-26T07:58:14Z</dc:date>
    <item>
      <title>Glance and Date Changing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/glance-and-date-changing/m-p/3407708#M202036</link>
      <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;I have a script as follows:&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;file=`date "+%d%m%Y"`&lt;BR /&gt;/opt/perf/bin/glance -j 60  -adviser_only -syntax /opt/perf/bin/advfile &amp;gt;&amp;gt; /var/glance_log/$file.log &amp;amp;&lt;BR /&gt;&lt;BR /&gt;Purpose is to capture the data on per date basis.&lt;BR /&gt;&lt;BR /&gt;Issue is that glance is not writing output to new file as the date changed rather it continues to write on the same file.&lt;BR /&gt;&lt;BR /&gt;What's the best way to address this issue.&lt;BR /&gt;&lt;BR /&gt;TIA&lt;BR /&gt;&lt;BR /&gt;Mahesh&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Oct 2004 02:27:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/glance-and-date-changing/m-p/3407708#M202036</guid>
      <dc:creator>Mahesh Babbar</dc:creator>
      <dc:date>2004-10-26T02:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Glance and Date Changing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/glance-and-date-changing/m-p/3407709#M202037</link>
      <description>Hi Mahesh&lt;BR /&gt; If you want to write more than one file you should do:&lt;BR /&gt; file=`date "+%d%m%Y"`&lt;BR /&gt; /opt/perf/bin/glance -j 60 -iterations $((24*60 - 1)) -adviser_only -syntax /opt/perf/bin/advfile &amp;gt;&amp;gt;/var/glance_log/$file.log &amp;amp;&lt;BR /&gt;&lt;BR /&gt;starting it at 0:00:00 with cron&lt;BR /&gt;&lt;BR /&gt;you can replace the $((24*60 -1)) by 1439</description>
      <pubDate>Tue, 26 Oct 2004 03:57:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/glance-and-date-changing/m-p/3407709#M202037</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2004-10-26T03:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Glance and Date Changing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/glance-and-date-changing/m-p/3407710#M202038</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The script starts only once and keep sending the output to $file at the moment glance starts. If you stop the execution of the script and start on different day it will send the output to new file. If your server reboots every day you can use -bootup option of glance, and everything will be find. If it is not a case you should find a way to restart your script, killing your glance process at midnight and starting it again.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Borislav</description>
      <pubDate>Tue, 26 Oct 2004 03:59:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/glance-and-date-changing/m-p/3407710#M202038</guid>
      <dc:creator>Borislav Perkov</dc:creator>
      <dc:date>2004-10-26T03:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Glance and Date Changing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/glance-and-date-changing/m-p/3407711#M202039</link>
      <description>Or:&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;while :&lt;BR /&gt;do&lt;BR /&gt;file=`date "+%d%m%Y"`&lt;BR /&gt;/opt/perf/bin/glance -j 60 -adviser_only -syntax /opt/perf/bin/advfile &amp;gt;&amp;gt; /var/glance_log/$file.log &amp;amp;&lt;BR /&gt;&lt;BR /&gt;echo $! &amp;gt; /var/tmp/glanceadv.pid&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;and in a cron&lt;BR /&gt;&lt;BR /&gt;kill $(cat /var/tmp/glanceadv.pid )</description>
      <pubDate>Tue, 26 Oct 2004 04:06:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/glance-and-date-changing/m-p/3407711#M202039</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2004-10-26T04:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Glance and Date Changing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/glance-and-date-changing/m-p/3407712#M202040</link>
      <description>oops I forgot the wait else a lot of glance will be started&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;while :&lt;BR /&gt;do&lt;BR /&gt;file=`date "+%d%m%Y"`&lt;BR /&gt;/opt/perf/bin/glance -j 60 -adviser_only -syntax /opt/perf/bin/advfile &amp;gt;&amp;gt; /var/glance_log/$file.log &amp;amp;&lt;BR /&gt;&lt;BR /&gt;echo $! &amp;gt; /var/tmp/glanceadv.pid&lt;BR /&gt;&lt;BR /&gt;wait&lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Oct 2004 04:30:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/glance-and-date-changing/m-p/3407712#M202040</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2004-10-26T04:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Glance and Date Changing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/glance-and-date-changing/m-p/3407713#M202041</link>
      <description>Thanks to all for replying.&lt;BR /&gt;&lt;BR /&gt;I will be using a combination of the solutions provided.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;Mahesh</description>
      <pubDate>Tue, 26 Oct 2004 07:58:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/glance-and-date-changing/m-p/3407713#M202041</guid>
      <dc:creator>Mahesh Babbar</dc:creator>
      <dc:date>2004-10-26T07:58:14Z</dc:date>
    </item>
  </channel>
</rss>

