<?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: Cronjob in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cronjob/m-p/2520892#M877952</link>
    <description>If your script does not specify which shell to execute, It will be using /usr/bin/sh (POSIX Shell by default). The syntax of the scripts might have to be change.....&lt;BR /&gt;&lt;BR /&gt;cd work/xps_prd &lt;BR /&gt;ORACLE_SID=XPS_PRD &lt;BR /&gt;PATH=$PATH:/xps_prd/express/work/xps_prd:/oracle/app/oracle/product/8.0.5/bin    &lt;BR /&gt;export $ORACLE_SID &lt;BR /&gt;export $PATH  &lt;BR /&gt;/oracle/app/oracle/product/8.0.5/bin/sqlplus /  @arwatch.sql &lt;BR /&gt; &lt;BR /&gt;</description>
    <pubDate>Thu, 26 Apr 2001 10:08:14 GMT</pubDate>
    <dc:creator>Chin Guan</dc:creator>
    <dc:date>2001-04-26T10:08:14Z</dc:date>
    <item>
      <title>Cronjob</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cronjob/m-p/2520888#M877948</link>
      <description>The new Cronjob i setup fails with the following Mail messasge: &lt;BR /&gt;&lt;BR /&gt;"From root Tue Apr 24 08:08:01 EDT 2001&lt;BR /&gt;Received: (from root@localhost)&lt;BR /&gt;        by usnjpav1.itxc.com (8.8.6 (PHNE_17190)/8.8.6) id IAA06903&lt;BR /&gt;        for xps_prd; Tue, 24 Apr 2001 08:08:01 -0400 (EDT)&lt;BR /&gt;Date: Tue, 24 Apr 2001 08:08:01 -0400 (EDT)&lt;BR /&gt;From: root&lt;BR /&gt;Message-Id: &amp;lt;200104241208.IAA06903@usnjpav1.itxc.com&amp;gt;&lt;BR /&gt;Subject: cron&lt;BR /&gt;&lt;BR /&gt;Message file sp1&lt;LANG&gt;.msb not found&lt;BR /&gt;Error 6 initializing SQL*Plus&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;*************************************************&lt;BR /&gt;Cron: The previous message is the standard output&lt;BR /&gt;      and standard error of one of your crontab commands:&lt;BR /&gt;&lt;BR /&gt;/xps_prd/express/work/xps_prd/arwatch.sh  "&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The Entry in the log file is:&lt;BR /&gt; &lt;BR /&gt;"CMD: /xps_prd/express/work/xps_prd/arwatch.sh  &lt;BR /&gt;&amp;gt;  xps_prd 6896 c Tue Apr 24 08:08:00 EDT 2001&lt;BR /&gt;&amp;lt;  xps_prd 6896 c Tue Apr 24 08:08:01 EDT 2001   rc=1  "&lt;BR /&gt;&lt;BR /&gt;Attached is the cronjob file for ref. &lt;BR /&gt;Appreciate your details for the Cronjob failures.&lt;/LANG&gt;</description>
      <pubDate>Tue, 24 Apr 2001 19:40:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cronjob/m-p/2520888#M877948</guid>
      <dc:creator>MILAN MURALIDHARAN_1</dc:creator>
      <dc:date>2001-04-24T19:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cronjob</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cronjob/m-p/2520889#M877949</link>
      <description>All those pesky little environment variables&lt;BR /&gt;you commented out (PATH,ORACLE_SID,SQL_PATH, etc.) need to be properly defined for the cronjob to work. Cron's environment is very sparse because it does not source a user's .profile where those variables are normally set. You might want to setup a file&lt;BR /&gt;(e.g. /usr/local/bin/oraclestuff.sh)&lt;BR /&gt;ORACLE_SID=xxx&lt;BR /&gt;ORACLE_BASE=yyy&lt;BR /&gt;ORACLE_HOME=${ORACLE_BASE}/product/8.1.7&lt;BR /&gt;PATH=/usr/bin:/bin/:/usr/local/bin:${ORACLE_HOME}/bin&lt;BR /&gt;&lt;BR /&gt;export ORACLE_SID ORACLED_HOME ORACLE_BASE PATH&lt;BR /&gt;&lt;BR /&gt;You would probably want more than that but that should give you the idea of the file's&lt;BR /&gt;contents. Do not include an exit in the file because the script called from cron&lt;BR /&gt;will do something like&lt;BR /&gt;. /usr/local/bin/oraclestuff.sh&lt;BR /&gt;to include all these common variables.&lt;BR /&gt;Typically this cronjob should be executed by oracle.&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Apr 2001 19:49:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cronjob/m-p/2520889#M877949</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-04-24T19:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Cronjob</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cronjob/m-p/2520890#M877950</link>
      <description>Just the cron job don't know where to find the sp1&lt;LANG&gt;.msb file.  Make sure all your Oracle related environment variables are being set properly WITHIN your cron job.  Remember, by default your .profile will NOT be executed in your cron job therefore you have to pick up any env variables needed.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Philip&lt;/LANG&gt;</description>
      <pubDate>Wed, 25 Apr 2001 01:37:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cronjob/m-p/2520890#M877950</guid>
      <dc:creator>Philip Chan_1</dc:creator>
      <dc:date>2001-04-25T01:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Cronjob</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cronjob/m-p/2520891#M877951</link>
      <description>I am still getting the following messages and the Cronjob is not running after modifying the file : &lt;BR /&gt;&lt;BR /&gt;"  From root Wed Apr 25 16:09:01 EDT 2001&lt;BR /&gt;Received: (from root@localhost)&lt;BR /&gt;        by usnjpav1.itxc.com (8.8.6 (PHNE_17190)/8.8.6) id QAA17319&lt;BR /&gt;        for xps_prd; Wed, 25 Apr 2001 16:09:00 -0400 (EDT)&lt;BR /&gt;Date: Wed, 25 Apr 2001 16:09:00 -0400 (EDT)&lt;BR /&gt;From: root&lt;BR /&gt;Message-Id: &amp;lt;200104252009.QAA17319@usnjpav1.itxc.com&amp;gt;&lt;BR /&gt;Subject: cron&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/usr/bin:/usr/sbin:.&lt;BR /&gt;/usr/bin:/usr/sbin:.&lt;BR /&gt;HOME=/xps_prd/express&lt;BR /&gt;LOGNAME=xps_prd&lt;BR /&gt;PATH=/usr/bin:/usr/sbin:.&lt;BR /&gt;PWD=/xps_prd/express/work/xps_prd&lt;BR /&gt;SHELL=/usr/bin/sh&lt;BR /&gt;TZ=EST5EDT&lt;BR /&gt;_=/usr/bin:/usr/sbin:.&lt;BR /&gt;/xps_prd/express/work/xps_prd/arwatch.sh[8]: /usr/bin:/usr/sbin:.: This is not an identifier.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;*************************************************&lt;BR /&gt;Cron: The previous message is the standard output&lt;BR /&gt;      and standard error of one of your crontab commands:&lt;BR /&gt;&lt;BR /&gt;/xps_prd/express/work/xps_prd/arwatch.sh " &lt;BR /&gt;&lt;BR /&gt;Modified file is in the attachment. &lt;BR /&gt;&lt;BR /&gt;Appreciate your help. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Apr 2001 19:28:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cronjob/m-p/2520891#M877951</guid>
      <dc:creator>MILAN MURALIDHARAN_1</dc:creator>
      <dc:date>2001-04-25T19:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cronjob</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cronjob/m-p/2520892#M877952</link>
      <description>If your script does not specify which shell to execute, It will be using /usr/bin/sh (POSIX Shell by default). The syntax of the scripts might have to be change.....&lt;BR /&gt;&lt;BR /&gt;cd work/xps_prd &lt;BR /&gt;ORACLE_SID=XPS_PRD &lt;BR /&gt;PATH=$PATH:/xps_prd/express/work/xps_prd:/oracle/app/oracle/product/8.0.5/bin    &lt;BR /&gt;export $ORACLE_SID &lt;BR /&gt;export $PATH  &lt;BR /&gt;/oracle/app/oracle/product/8.0.5/bin/sqlplus /  @arwatch.sql &lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Thu, 26 Apr 2001 10:08:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cronjob/m-p/2520892#M877952</guid>
      <dc:creator>Chin Guan</dc:creator>
      <dc:date>2001-04-26T10:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Cronjob</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cronjob/m-p/2520893#M877953</link>
      <description>Hi,&lt;BR /&gt;do NOT define the Oracle environment variables in every script.  Put them in a separate file, and source this file.&lt;BR /&gt;If your settings change (for example after an upgrade) you might need to modify tons of scripts.&lt;BR /&gt;BTW this does not apply to Oracle only.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Thierry.</description>
      <pubDate>Thu, 26 Apr 2001 10:51:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cronjob/m-p/2520893#M877953</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2001-04-26T10:51:37Z</dc:date>
    </item>
  </channel>
</rss>

