<?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 script error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-script-error/m-p/4986227#M421013</link>
    <description>Another file was causing cron to falsely show as failing.</description>
    <pubDate>Mon, 19 Jun 2006 14:31:41 GMT</pubDate>
    <dc:creator>TKeller</dc:creator>
    <dc:date>2006-06-19T14:31:41Z</dc:date>
    <item>
      <title>Cron script error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-script-error/m-p/4986221#M421007</link>
      <description>Greetings again. Disclaimer: I've searched on here to find anything similar and wasn't able to. Cron works fine, cron daemon is alive and well, and from all intents and purposes, all cron job scripts are good.&lt;BR /&gt;&lt;BR /&gt;On startup of the machine (rp4440, 11.11), when /etc/rc.config.d directory is sourced (minus backups, etc), the /etc/rc.config.d/cron file returns the following (set -x is on):&lt;BR /&gt;&lt;BR /&gt;+ . cron&lt;BR /&gt;sh: Syntax error: `(' is not expected.&lt;BR /&gt;&lt;BR /&gt;If I'm in that directory and I do 'cp cron foo' and run the same command, it works just fine. All this file is doing is starting cron if the value is 1 or ignoring cron if it's 0. Nothing else. Question is, why would it report a script error?&lt;BR /&gt;&lt;BR /&gt;The only thing I can think of is that the shell knows it's sourcing a system file and reads something else, something that's shell-based and hence, it reports said error.&lt;BR /&gt;&lt;BR /&gt;Thanks all in advance!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Jun 2006 13:57:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-script-error/m-p/4986221#M421007</guid>
      <dc:creator>TKeller</dc:creator>
      <dc:date>2006-06-19T13:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Cron script error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-script-error/m-p/4986222#M421008</link>
      <description>Can you post the /etc/rc.config.d/cron file here.  It looks to me like you have an extra character (`)in the script that shouldn't be there.  Possibly when you were editing the file in vi and went to hit the esc key you hit the wrong key at one time or another.&lt;BR /&gt;&lt;BR /&gt;Phil</description>
      <pubDate>Mon, 19 Jun 2006 14:02:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-script-error/m-p/4986222#M421008</guid>
      <dc:creator>Phillip Thayer</dc:creator>
      <dc:date>2006-06-19T14:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cron script error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-script-error/m-p/4986223#M421009</link>
      <description>#!/sbin/sh&lt;BR /&gt;# @(#)B.11.11_LR&lt;BR /&gt;# Cron configuration.  See cron(1m)&lt;BR /&gt;#&lt;BR /&gt;# CRON:         Set to 1 to start cron daemon&lt;BR /&gt;#&lt;BR /&gt;CRON=1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;There's the /etc/rc.config.d/cron file. I thought that too, but what confuses me is that if I copy that file to say 'foo' and then I source it with '. foo', it returns nothing.</description>
      <pubDate>Mon, 19 Jun 2006 14:08:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-script-error/m-p/4986223#M421009</guid>
      <dc:creator>TKeller</dc:creator>
      <dc:date>2006-06-19T14:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Cron script error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-script-error/m-p/4986224#M421010</link>
      <description>how about sourcing with the full pathname i.e.&lt;BR /&gt;&lt;BR /&gt;. /etc/rc.config.d/cron</description>
      <pubDate>Mon, 19 Jun 2006 14:15:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-script-error/m-p/4986224#M421010</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-06-19T14:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cron script error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-script-error/m-p/4986225#M421011</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;I suspect that the actual error is not in the 'cron' configuration file but the predecessor file.&lt;BR /&gt;&lt;BR /&gt;Try:&lt;BR /&gt;&lt;BR /&gt;# sh -vx /etc/rc.config 2&amp;gt;&amp;amp;1 | more&lt;BR /&gt;&lt;BR /&gt;...and examine the output.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Jun 2006 14:21:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-script-error/m-p/4986225#M421011</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-06-19T14:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cron script error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-script-error/m-p/4986226#M421012</link>
      <description>Sandman: that worked, as it didn't return any error.&lt;BR /&gt;&lt;BR /&gt;James R. Ferguson: you're absolutely right...thanks! It was find a file called 'pre-mirrorvg00' that passed the filename filter and had mirror info, including illegal characters like (). Don't know how or why that's there, but it's gone now!&lt;BR /&gt;&lt;BR /&gt;Thanks all, very good help!</description>
      <pubDate>Mon, 19 Jun 2006 14:26:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-script-error/m-p/4986226#M421012</guid>
      <dc:creator>TKeller</dc:creator>
      <dc:date>2006-06-19T14:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Cron script error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-script-error/m-p/4986227#M421013</link>
      <description>Another file was causing cron to falsely show as failing.</description>
      <pubDate>Mon, 19 Jun 2006 14:31:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-script-error/m-p/4986227#M421013</guid>
      <dc:creator>TKeller</dc:creator>
      <dc:date>2006-06-19T14:31:41Z</dc:date>
    </item>
  </channel>
</rss>

