- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Cron script error
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2006 06:57 AM
06-19-2006 06:57 AM
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):
+ . cron
sh: Syntax error: `(' is not expected.
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?
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.
Thanks all in advance!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2006 07:02 AM
06-19-2006 07:02 AM
Re: Cron script error
Phil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2006 07:08 AM
06-19-2006 07:08 AM
Re: Cron script error
# @(#)B.11.11_LR
# Cron configuration. See cron(1m)
#
# CRON: Set to 1 to start cron daemon
#
CRON=1
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2006 07:15 AM
06-19-2006 07:15 AM
Re: Cron script error
. /etc/rc.config.d/cron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2006 07:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2006 07:26 AM
06-19-2006 07:26 AM
Re: Cron script error
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!
Thanks all, very good help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2006 07:31 AM
06-19-2006 07:31 AM