HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Startup script errors
Operating System - HP-UX
1827460
Members
4019
Online
109965
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
03-10-2003 08:27 AM
03-10-2003 08:27 AM
Hi All,
I am currently hardening a box and have found some errors in the /etc/rc.log saying "^M" not found. I have searched all the scripts for any control characters but have found none and the problem seems to be calling the same script....
if [ -f /etc/rc.config ] ; then
. /etc/rc.config # problem line
else (etc)
I have found no control characters in this file either.
Does anybody have any idea whats wrong here?
Thanks in advance,
Colin.
I am currently hardening a box and have found some errors in the /etc/rc.log saying "^M" not found. I have searched all the scripts for any control characters but have found none and the problem seems to be calling the same script....
if [ -f /etc/rc.config ] ; then
. /etc/rc.config # problem line
else (etc)
I have found no control characters in this file either.
Does anybody have any idea whats wrong here?
Thanks in advance,
Colin.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 08:34 AM
03-10-2003 08:34 AM
Solution
Hi Colin,
/etc/rc.config calls all your /etc/rc.config.d/* scripts, so I'd run:
sh -x /etc/rc.config
and look for the ^M error in the output. Maybe even copy the script and add a line to echo the name of each script as it is sourced then run:
. /etc/rc.config
this should then show you the offending file.
rgds, Robin
/etc/rc.config calls all your /etc/rc.config.d/* scripts, so I'd run:
sh -x /etc/rc.config
and look for the ^M error in the output. Maybe even copy the script and add a line to echo the name of each script as it is sourced then run:
. /etc/rc.config
this should then show you the offending file.
rgds, Robin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 08:39 AM
03-10-2003 08:39 AM
Re: Startup script errors
Hi Colin:
'/etc/rc.config' sources (reads) every file in '/etc/rc.config.d/' to collect environmental variables.
The presence of "^M" in some file within this directory is probably due to a editting a file on a PC and incorrectly doing a binary FTP transfer back to Unix.
Look in '/etc/rc.config.d' for the culprit. You can expose the "^M" by doing:
# for FILE in /etc/rc.config.d/*
> do
> cat -etv ${FILE}|more
> done
Regards!
...JRF...
'/etc/rc.config' sources (reads) every file in '/etc/rc.config.d/' to collect environmental variables.
The presence of "^M" in some file within this directory is probably due to a editting a file on a PC and incorrectly doing a binary FTP transfer back to Unix.
Look in '/etc/rc.config.d' for the culprit. You can expose the "^M" by doing:
# for FILE in /etc/rc.config.d/*
> do
> cat -etv ${FILE}|more
> done
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 09:33 AM
03-10-2003 09:33 AM
Re: Startup script errors
It is also possible to get this error if you edited the script on the pc and saved it to a folder exported with CIFS or samba.
The specific problem you are having, I prevent by using vi on the host to edit configuration scripts.
SEP
The specific problem you are having, I prevent by using vi on the host to edit configuration scripts.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP