<?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 to know that server time has a new date in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-know-that-server-time-has-a-new-date/m-p/4476089#M361855</link>
    <description>Hi,&lt;BR /&gt;what about setting up a cron job for it?</description>
    <pubDate>Mon, 10 Aug 2009 05:58:40 GMT</pubDate>
    <dc:creator>Stephan.</dc:creator>
    <dc:date>2009-08-10T05:58:40Z</dc:date>
    <item>
      <title>Script to know that server time has a new date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-know-that-server-time-has-a-new-date/m-p/4476088#M361854</link>
      <description>Need a script which will tell that the server time has the clock time 12 midnight.  The script should check when the 12 midnight has occurred in the server and print a message as soon as the server has the new day with midnight 12 a.m.  &lt;BR /&gt;&lt;BR /&gt;Please suggest.</description>
      <pubDate>Mon, 10 Aug 2009 05:29:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-know-that-server-time-has-a-new-date/m-p/4476088#M361854</guid>
      <dc:creator>Deepu Chakravarty</dc:creator>
      <dc:date>2009-08-10T05:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Script to know that server time has a new date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-know-that-server-time-has-a-new-date/m-p/4476089#M361855</link>
      <description>Hi,&lt;BR /&gt;what about setting up a cron job for it?</description>
      <pubDate>Mon, 10 Aug 2009 05:58:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-know-that-server-time-has-a-new-date/m-p/4476089#M361855</guid>
      <dc:creator>Stephan.</dc:creator>
      <dc:date>2009-08-10T05:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Script to know that server time has a new date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-know-that-server-time-has-a-new-date/m-p/4476090#M361856</link>
      <description>But what to write in cron job?  The script is required.</description>
      <pubDate>Mon, 10 Aug 2009 06:35:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-know-that-server-time-has-a-new-date/m-p/4476090#M361856</guid>
      <dc:creator>Deepu Chakravarty</dc:creator>
      <dc:date>2009-08-10T06:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Script to know that server time has a new date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-know-that-server-time-has-a-new-date/m-p/4476091#M361857</link>
      <description>The question is what you want, a email to ?, a message to all user, an entry in a log file, ...&lt;BR /&gt;&lt;BR /&gt;Usual crontab syntax would be:&lt;BR /&gt;&lt;BR /&gt;0 0 * * * &lt;COMMAND&gt;&lt;BR /&gt;&lt;BR /&gt;for example insert a message to syslog.log:&lt;BR /&gt;&lt;BR /&gt;0 0 * * * /usr/bin/echo "+++ Midnight +++" &amp;gt;&amp;gt; /var/adm/syslog/syslog.log&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;&lt;BR /&gt;&lt;/COMMAND&gt;</description>
      <pubDate>Mon, 10 Aug 2009 06:45:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-know-that-server-time-has-a-new-date/m-p/4476091#M361857</guid>
      <dc:creator>Stephan.</dc:creator>
      <dc:date>2009-08-10T06:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Script to know that server time has a new date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-know-that-server-time-has-a-new-date/m-p/4476092#M361858</link>
      <description>This script you have provided will only append the text "Midnight" in syslog file.  But my requirement is different. The script can be run as a cron job. I am restating my requirement as follows:&lt;BR /&gt;1. The cron job should check that midnight(12 a.m.) occurs in the server, &lt;BR /&gt;2. The cron job should immediately print in the file /tmp/midnight.txt the current time of the server.&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Aug 2009 08:12:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-know-that-server-time-has-a-new-date/m-p/4476092#M361858</guid>
      <dc:creator>Deepu Chakravarty</dc:creator>
      <dc:date>2009-08-10T08:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Script to know that server time has a new date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-know-that-server-time-has-a-new-date/m-p/4476093#M361859</link>
      <description>&amp;gt;But my requirement is different.&lt;BR /&gt;&lt;BR /&gt;But once you know about crontab, you should be able modify it to do what you want.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;2. The cron job should immediately print in the file /tmp/midnight.txt the current time of the server.&lt;BR /&gt;&lt;BR /&gt;0 0 * * * date &amp;gt; /tmp/midnight.txt</description>
      <pubDate>Mon, 10 Aug 2009 08:19:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-know-that-server-time-has-a-new-date/m-p/4476093#M361859</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-08-10T08:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Script to know that server time has a new date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-know-that-server-time-has-a-new-date/m-p/4476094#M361860</link>
      <description>&amp;gt;This script you have provided will only append the text "Midnight" in syslog file. But my requirement is different&lt;BR /&gt;&lt;BR /&gt;Without any given information or requirements i can only answer with examples.&lt;BR /&gt;&lt;BR /&gt;Perhaps a simple 'man cron' helps.&lt;BR /&gt;&lt;BR /&gt;#man cron&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; NAME&lt;BR /&gt;      cron - timed-job execution daemon&lt;BR /&gt;&lt;BR /&gt; SYNOPSIS&lt;BR /&gt;      /usr/sbin/cron&lt;BR /&gt;&lt;BR /&gt; DESCRIPTION&lt;BR /&gt;      cron executes commands at specified dates and times.&lt;BR /&gt;&lt;BR /&gt;For the new requiremnts Dennis posted the correct answer.</description>
      <pubDate>Mon, 10 Aug 2009 08:48:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-know-that-server-time-has-a-new-date/m-p/4476094#M361860</guid>
      <dc:creator>Stephan.</dc:creator>
      <dc:date>2009-08-10T08:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Script to know that server time has a new date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-know-that-server-time-has-a-new-date/m-p/4476095#M361861</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Need a script which will tell that the server time has the clock time 12 midnight. The script should check when the 12 midnight has occurred in the server and print a message as soon as the server has the new day with midnight 12 a.m. &lt;BR /&gt;&lt;BR /&gt;And that's because you're not sure if midnight will come every day?&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 10 Aug 2009 10:48:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-know-that-server-time-has-a-new-date/m-p/4476095#M361861</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-08-10T10:48:13Z</dc:date>
    </item>
  </channel>
</rss>

