<?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/2425291#M1055</link>
    <description>Thanks guys. I was using the wrong syntax in one of my commands and it was doing an exit 0.&lt;BR /&gt;&lt;BR /&gt;--Scott&lt;BR /&gt;</description>
    <pubDate>Wed, 07 Jun 2000 15:25:31 GMT</pubDate>
    <dc:creator>Scott D. Allen</dc:creator>
    <dc:date>2000-06-07T15:25:31Z</dc:date>
    <item>
      <title>Cronjob</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cronjob/m-p/2425288#M1052</link>
      <description>I've got a cronjob that runs fine from the command line as root, but doesn't run in the cron. Actually, it runs, but it dumps out before executing correctly and doesn't produce any errors.&lt;BR /&gt;&lt;BR /&gt;30 * * * * /opt/scripts/script &amp;gt; /var/tmp/script.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;It produces a log file inside the script, which gets created every half hour, but it's empty and so is the log file.&lt;BR /&gt;&lt;BR /&gt;--Scott&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Jun 2000 13:48:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cronjob/m-p/2425288#M1052</guid>
      <dc:creator>Scott D. Allen</dc:creator>
      <dc:date>2000-06-07T13:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cronjob</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cronjob/m-p/2425289#M1053</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;don't know what script you have.&lt;BR /&gt;If it's a bourne/korn (sh/ksh) script&lt;BR /&gt;insert at the top a line like:&lt;BR /&gt;set -x&lt;BR /&gt;this generates a trace to stdout.&lt;BR /&gt;Perhaps you can look in the mail for these&lt;BR /&gt;messages.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Andrew</description>
      <pubDate>Wed, 07 Jun 2000 13:59:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cronjob/m-p/2425289#M1053</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2000-06-07T13:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cronjob</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cronjob/m-p/2425290#M1054</link>
      <description>My guess is there are environmental variables that are not getting set when the job is run via cron. Make sure to set all required variables within the script.&lt;BR /&gt;&lt;BR /&gt;If you do not want a new log file created at each execution use &amp;gt;&amp;gt; instead of &amp;gt;.&lt;BR /&gt;&lt;BR /&gt;Brian&lt;BR /&gt;&amp;lt;*(((&amp;gt;&amp;lt; er</description>
      <pubDate>Wed, 07 Jun 2000 14:04:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cronjob/m-p/2425290#M1054</guid>
      <dc:creator>Brian M. Fisher</dc:creator>
      <dc:date>2000-06-07T14:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cronjob</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cronjob/m-p/2425291#M1055</link>
      <description>Thanks guys. I was using the wrong syntax in one of my commands and it was doing an exit 0.&lt;BR /&gt;&lt;BR /&gt;--Scott&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Jun 2000 15:25:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cronjob/m-p/2425291#M1055</guid>
      <dc:creator>Scott D. Allen</dc:creator>
      <dc:date>2000-06-07T15:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Cronjob</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cronjob/m-p/2425292#M1056</link>
      <description>Scott,&lt;BR /&gt;&lt;BR /&gt;Not knowing what your script does, you might want to check if any directories or commands are being used in the script that have to have 'root' access (since it's running fine from the command line when executed as 'root'). Is the cron job running as 'root' or as user 'xyz'?&lt;BR /&gt;&lt;BR /&gt;Chris :-)</description>
      <pubDate>Thu, 08 Jun 2000 12:49:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cronjob/m-p/2425292#M1056</guid>
      <dc:creator>Chris Ermlich</dc:creator>
      <dc:date>2000-06-08T12:49:42Z</dc:date>
    </item>
  </channel>
</rss>

