<?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 troubles in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752844#M258082</link>
    <description>What Kent means - is in your scripts, use the full paths to the commands:&lt;BR /&gt;&lt;BR /&gt;/usr/bin/bdf&lt;BR /&gt;&lt;BR /&gt;I also noticed the first line in your script:&lt;BR /&gt;&lt;BR /&gt;#\!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;should be&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
    <pubDate>Thu, 16 Mar 2006 14:16:54 GMT</pubDate>
    <dc:creator>Geoff Wild</dc:creator>
    <dc:date>2006-03-16T14:16:54Z</dc:date>
    <item>
      <title>Cron troubles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752834#M258072</link>
      <description>I created a cron job to run a script that resides in /root folder.  This script doesn’t do very much but give me a picture of how the system is doing at midnight and removes old files from the /tmp folder.  &lt;BR /&gt;&lt;BR /&gt;It sends an e-mail to the user (root) which should be forwarded to my e-mail address.  This works properly won my L2000 server but doesn’t seem to be working on my rp3440 server.&lt;BR /&gt;&lt;BR /&gt;The log file doesn’t show me any useful information other than the script ran.  I am not getting any e-mails.  What could be the problem?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Mar 2006 13:37:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752834#M258072</guid>
      <dc:creator>Jeffrey F. Goldsmith</dc:creator>
      <dc:date>2006-03-16T13:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cron troubles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752835#M258073</link>
      <description>Hi Jeffrey:&lt;BR /&gt;&lt;BR /&gt;How do you do 'forwarding'?  Is your "email" address merely on your server or does it live elsewhere?  Do you have a 'DS' entry in:&lt;BR /&gt;&lt;BR /&gt;'/etc/mail/sendmail.cf'&lt;BR /&gt;&lt;BR /&gt;...for example:&lt;BR /&gt;&lt;BR /&gt;DSxxx.abc.com&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 16 Mar 2006 13:42:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752835#M258073</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-03-16T13:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cron troubles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752836#M258074</link>
      <description>Hi (again) Jeff:&lt;BR /&gt;&lt;BR /&gt;Check also '/var/adm/syslog/mail.log' for indications of mail problems.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 16 Mar 2006 13:43:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752836#M258074</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-03-16T13:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cron troubles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752837#M258075</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Do you PATH setup in your script to find sendmail or mailx ?&lt;BR /&gt;&lt;BR /&gt;Try put to run in cron this form:&lt;BR /&gt;&lt;BR /&gt;0  0  *  *  *  /your_script.sh 2&amp;gt;/tmp/err.log &amp;gt;/tmp/your_script.log&lt;BR /&gt;&lt;BR /&gt;Look for the errors in theses logs.&lt;BR /&gt;&lt;BR /&gt;Try put "set -x" in first line in script if you can figure out yet.&lt;BR /&gt;&lt;BR /&gt;Look for errors in /var/adm/syslog/mail.log&lt;BR /&gt;&lt;BR /&gt;Be sure your script in the log /var/adm/cron/log&lt;BR /&gt;&lt;BR /&gt;Schimidt</description>
      <pubDate>Thu, 16 Mar 2006 13:45:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752837#M258075</guid>
      <dc:creator>Carlos Roberto Schimidt</dc:creator>
      <dc:date>2006-03-16T13:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Cron troubles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752838#M258076</link>
      <description>Run your script in debug mode by adding a line to the top of your script as follows:&lt;BR /&gt;&lt;BR /&gt;#!/bin/&lt;SHELL_YOU_USE&gt; -x&lt;BR /&gt;&lt;BR /&gt;and then looking at its output on what is wrong. Additionally make sure the PATH variable in your script is defined as cron has a very limited one.&lt;BR /&gt;&lt;BR /&gt;cheers!&lt;/SHELL_YOU_USE&gt;</description>
      <pubDate>Thu, 16 Mar 2006 13:45:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752838#M258076</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-03-16T13:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Cron troubles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752839#M258077</link>
      <description>Could be many things - different OS releases?&lt;BR /&gt;&lt;BR /&gt;Mail not configured the same?&lt;BR /&gt;&lt;BR /&gt;Can you post the script?&lt;BR /&gt;&lt;BR /&gt;In your crontab, ad looging for the cron job:&lt;BR /&gt;&lt;BR /&gt;0 0 0 0 0 /root/yourscript &amp;gt; /tmp/yourscript.cronlog 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;What happens when you run the script from the command line on the rp3440?&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Thu, 16 Mar 2006 13:47:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752839#M258077</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-03-16T13:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cron troubles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752840#M258078</link>
      <description>Yes, there is a difference between the OS that I am using.  The L2000 is using HP-UX 11.0 and the rp3440 is using HP-UX 11.23.&lt;BR /&gt;&lt;BR /&gt;Here is the script that I am running on both servers:&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Mar 2006 13:59:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752840#M258078</guid>
      <dc:creator>Jeffrey F. Goldsmith</dc:creator>
      <dc:date>2006-03-16T13:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cron troubles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752841#M258079</link>
      <description>Check to make sure that you are using full paths in your script.&lt;BR /&gt;&lt;BR /&gt;If the paths are defined differently between the two machines then it could cause a problem.&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Mar 2006 14:01:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752841#M258079</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2006-03-16T14:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cron troubles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752842#M258080</link>
      <description>In your script, you can also redirect command outputs to a log file:&lt;BR /&gt;&lt;BR /&gt;LOG=/tmp/genadmin.log&lt;BR /&gt;&lt;BR /&gt;#zero the old log&lt;BR /&gt;&amp;gt;$LOG&lt;BR /&gt;&lt;BR /&gt;bdf &amp;gt;&amp;gt;$LOG&lt;BR /&gt;&lt;BR /&gt;swapinfo -tam &amp;gt;&amp;gt; $LOG&lt;BR /&gt;&lt;BR /&gt;and so on...&lt;BR /&gt;&lt;BR /&gt;Then mail the log file:&lt;BR /&gt;&lt;BR /&gt;mailx -s "genadmin report" you@yourdomain.com &amp;lt; $LOG&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Thu, 16 Mar 2006 14:06:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752842#M258080</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-03-16T14:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cron troubles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752843#M258081</link>
      <description>The PATHs are different because of how I setup the root user on the rp3440.  Here is the two scrips that are running on the two different servers.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rp3440 w/11.23:&lt;BR /&gt;root: /var/spool/cron/crontabs ==&amp;gt; more root&lt;BR /&gt;# Entry(s) in /opt/hpservices/RemoteSupport are for HP Instant Support Enterpris&lt;BR /&gt;e Edition&lt;BR /&gt;&lt;BR /&gt;0  0  *  *  1  /opt/hpservices/RemoteSupport/config/pruneIncidents.sh&lt;BR /&gt;50 23 * * * /root/genadmin&lt;BR /&gt;0,15,30,45 * * * * /opt/omni/sbin/omnitrig&lt;BR /&gt;root: /var/spool/cron/crontabs ==&amp;gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;L2000 w/11.0:&lt;BR /&gt;root: /etc/mail ==&amp;gt; more /var/spool/cron/crontabs/root&lt;BR /&gt;50 23 * * *     /home/root/genadmin&lt;BR /&gt;# omnitrig entry was automatically added by &lt;BR /&gt;0,15,30,45 * * * * /opt/omni/sbin/omnitrig&lt;BR /&gt;root: /etc/mail ==&amp;gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Mar 2006 14:07:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752843#M258081</guid>
      <dc:creator>Jeffrey F. Goldsmith</dc:creator>
      <dc:date>2006-03-16T14:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Cron troubles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752844#M258082</link>
      <description>What Kent means - is in your scripts, use the full paths to the commands:&lt;BR /&gt;&lt;BR /&gt;/usr/bin/bdf&lt;BR /&gt;&lt;BR /&gt;I also noticed the first line in your script:&lt;BR /&gt;&lt;BR /&gt;#\!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;should be&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Thu, 16 Mar 2006 14:16:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752844#M258082</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-03-16T14:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Cron troubles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752845#M258083</link>
      <description>I made the changes and also created a different script to see if I could figure out what the problem is.  This one doesnt seem to be working either.&lt;BR /&gt;&lt;BR /&gt;root: /root ==&amp;gt; more gravinadate &lt;BR /&gt;#!/bin/ksh -x&lt;BR /&gt;&lt;BR /&gt;/usr/bin/date&lt;BR /&gt;&lt;BR /&gt;# mail lvol list to root&lt;BR /&gt;/usr/bin/bdf&lt;BR /&gt;&lt;BR /&gt;root: /root ==&amp;gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here is my crontabs file:&lt;BR /&gt;&lt;BR /&gt;root: /var/spool/cron/crontabs ==&amp;gt; more root&lt;BR /&gt;# Entry(s) in /opt/hpservices/RemoteSupport are for HP Instant Support Enterpris&lt;BR /&gt;e Edition&lt;BR /&gt;&lt;BR /&gt;0 0 0 0 0 /root/gravinadate &amp;gt; /tmp/gravinadate.cronlog 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;0  0  *  *  1  /opt/hpservices/RemoteSupport/config/pruneIncidents.sh&lt;BR /&gt;0,5,10,15,20,25,30,35,40,45,50,55 * * * * /root/gravinadate&lt;BR /&gt;50 23 * * * /root/genadmin&lt;BR /&gt;0,15,30,45 * * * * /opt/omni/sbin/omnitrig&lt;BR /&gt;root: /var/spool/cron/crontabs ==&amp;gt; &lt;BR /&gt;&lt;BR /&gt;Here is my .forward too:&lt;BR /&gt;&lt;BR /&gt;root: /root ==&amp;gt; more .forward&lt;BR /&gt;jgoldsmith@co.fairbanks.ak.us&lt;BR /&gt;#    ssmith@co.fairbanks.ak.us&lt;BR /&gt;root: /root ==&amp;gt; &lt;BR /&gt;&lt;BR /&gt;I checked the mail part and it looks correct.&lt;BR /&gt;Any other ideas as to what could be my problem?</description>
      <pubDate>Thu, 16 Mar 2006 15:15:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752845#M258083</guid>
      <dc:creator>Jeffrey F. Goldsmith</dc:creator>
      <dc:date>2006-03-16T15:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Cron troubles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752846#M258084</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You mail setup is working well?&lt;BR /&gt;&lt;BR /&gt;# cat /root/.profile | mailx jgoldsmith@co.fairbanks.ak.us&lt;BR /&gt;&lt;BR /&gt;Use the command mailq to see if anything hangs...&lt;BR /&gt;&lt;BR /&gt;Regards, MB.</description>
      <pubDate>Thu, 16 Mar 2006 15:38:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752846#M258084</guid>
      <dc:creator>Marcel Boogert_1</dc:creator>
      <dc:date>2006-03-16T15:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Cron troubles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752847#M258085</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;I also found this:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000062904859" target="_blank"&gt;http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000062904859&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;MB.</description>
      <pubDate>Thu, 16 Mar 2006 15:39:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752847#M258085</guid>
      <dc:creator>Marcel Boogert_1</dc:creator>
      <dc:date>2006-03-16T15:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cron troubles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752848#M258086</link>
      <description>I am now thinking that I am having a problem with my mail service.  I tried to send myself an e-mail and received nothing and the mqueue is empty.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Mar 2006 15:41:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752848#M258086</guid>
      <dc:creator>Jeffrey F. Goldsmith</dc:creator>
      <dc:date>2006-03-16T15:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cron troubles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752849#M258087</link>
      <description>Here is what i do:&lt;BR /&gt;------------------------&lt;BR /&gt;#!/bin/sh &lt;BR /&gt;exec &amp;gt; /home/whatever/logfile 2&amp;gt;@1&lt;BR /&gt;&lt;BR /&gt;MAIL_TO=you@somewhere.net&lt;BR /&gt;&lt;BR /&gt;echo "From:yourserver@somewhere.net"&lt;BR /&gt;echo "Subject:whatever you want.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;your script here:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bottom of script&lt;BR /&gt;&lt;BR /&gt;cat /home/whatever/logfile | sendmail $MAIL_TO&lt;BR /&gt;----------------------------&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Richard&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Mar 2006 16:10:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752849#M258087</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2006-03-16T16:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cron troubles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752850#M258088</link>
      <description>Yes - check your mail configuration...&lt;BR /&gt;&lt;BR /&gt;/etc/mail&lt;BR /&gt;&lt;BR /&gt;look at the aliases file and sendmail.cf&lt;BR /&gt;&lt;BR /&gt;Main macros to check in cf:&lt;BR /&gt;&lt;BR /&gt;DS&lt;BR /&gt;DM&lt;BR /&gt;&lt;BR /&gt;Check it on the L2000 - then make changes to the sendmail.cf on the RP3440.&lt;BR /&gt;&lt;BR /&gt;DS is the "smart relay" - like an exchange or notes server&lt;BR /&gt;&lt;BR /&gt;DSyourexchangeserver&lt;BR /&gt;&lt;BR /&gt;DM - is masquerade - so instead of root@someserver.internaldomain.net it will be root@yourdomain.com&lt;BR /&gt;&lt;BR /&gt;DMyourdomain.com&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Thu, 16 Mar 2006 17:03:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-troubles/m-p/3752850#M258088</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-03-16T17:03:56Z</dc:date>
    </item>
  </channel>
</rss>

