<?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: Cron and syslog in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-syslog/m-p/3176057#M162071</link>
    <description>Hi Juan,&lt;BR /&gt;&lt;BR /&gt;YOu can get messages into syslog.log by through either a facility configured in syslog.conf or by the API command logger. I don't think you can redirect cron's messages by either of them. Ofcourse, you can write a script the checks cron's log and appends the new messages to syslog by logger command.&lt;BR /&gt;&lt;BR /&gt;One way is to link /var/adm/cron/log to syslog.log but I haven't tried that.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
    <pubDate>Wed, 28 Jan 2004 03:22:12 GMT</pubDate>
    <dc:creator>Sridhar Bhaskarla</dc:creator>
    <dc:date>2004-01-28T03:22:12Z</dc:date>
    <item>
      <title>Cron and syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-syslog/m-p/3176056#M162070</link>
      <description>Hi folks.&lt;BR /&gt;&lt;BR /&gt;Is there a way to re-direct messages of cron to syslog.log? I know that messages of cron are logged in cron.log, but I would have them recorded also into syslog.log.&lt;BR /&gt;&lt;BR /&gt;Any hints?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Juan</description>
      <pubDate>Wed, 28 Jan 2004 03:14:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-syslog/m-p/3176056#M162070</guid>
      <dc:creator>Pippo_9</dc:creator>
      <dc:date>2004-01-28T03:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cron and syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-syslog/m-p/3176057#M162071</link>
      <description>Hi Juan,&lt;BR /&gt;&lt;BR /&gt;YOu can get messages into syslog.log by through either a facility configured in syslog.conf or by the API command logger. I don't think you can redirect cron's messages by either of them. Ofcourse, you can write a script the checks cron's log and appends the new messages to syslog by logger command.&lt;BR /&gt;&lt;BR /&gt;One way is to link /var/adm/cron/log to syslog.log but I haven't tried that.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 28 Jan 2004 03:22:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-syslog/m-p/3176057#M162071</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-01-28T03:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cron and syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-syslog/m-p/3176058#M162072</link>
      <description>The man page for cron doesn't give any options for relocating the log file.&lt;BR /&gt;I don't think it will be easy to have cron activity also copied to syslog, but you could potentially write scripts to merge the 2 files periodically.&lt;BR /&gt;&lt;BR /&gt;-- Graham</description>
      <pubDate>Wed, 28 Jan 2004 03:33:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-syslog/m-p/3176058#M162072</guid>
      <dc:creator>Graham Cameron_1</dc:creator>
      <dc:date>2004-01-28T03:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Cron and syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-syslog/m-p/3176059#M162073</link>
      <description>You obviously could redirect cron job output anyway you want.&lt;BR /&gt;&lt;BR /&gt;You can redirect the output &amp;gt;&amp;gt; to /var/adm/syslog/syslog.log&lt;BR /&gt;&lt;BR /&gt;What we actually do is direct the messages as email to a folder on our exchange server&lt;BR /&gt;&lt;BR /&gt;example:&lt;BR /&gt;&lt;BR /&gt;10 1 * * * jobname 2&amp;gt;&amp;amp;1 mailx -s "job output" someaddress@your.net&lt;BR /&gt;&lt;BR /&gt;This collects the output nicely.&lt;BR /&gt;&lt;BR /&gt;I have too much cron output to put it in syslog.&lt;BR /&gt;&lt;BR /&gt;Just another idea.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 28 Jan 2004 03:59:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-syslog/m-p/3176059#M162073</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-01-28T03:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cron and syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-syslog/m-p/3176060#M162074</link>
      <description>Sridhar,&lt;BR /&gt;&lt;BR /&gt;I have tried with logger on 11.i and it works, unfortunately on 10.20 cron is not recognized as a facility (msg "unknown facility name").&lt;BR /&gt;&lt;BR /&gt;Thanks for your help</description>
      <pubDate>Wed, 28 Jan 2004 04:28:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-syslog/m-p/3176060#M162074</guid>
      <dc:creator>Pippo_9</dc:creator>
      <dc:date>2004-01-28T04:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Cron and syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-syslog/m-p/3176061#M162075</link>
      <description>The ability to direct cron messages was added to syslogd in 11i (in patch PHCO_23413 I believe)&lt;BR /&gt;&lt;BR /&gt;Looking at the man page (man 3c syslog), there is an entry for LOG_CRON if this is enabled.&lt;BR /&gt;&lt;BR /&gt;This means that if that patch is installed on your system, you can add the entry&lt;BR /&gt;&lt;BR /&gt;cron.* /var/adm/syslog/syslog.log&lt;BR /&gt;&lt;BR /&gt;to /etc/syslog.conf.  If you then restart syslogd, this should start to put cron messages into syslog.</description>
      <pubDate>Wed, 28 Jan 2004 04:54:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-syslog/m-p/3176061#M162075</guid>
      <dc:creator>Chris Wilshaw</dc:creator>
      <dc:date>2004-01-28T04:54:05Z</dc:date>
    </item>
  </channel>
</rss>

