Operating System - HP-UX
1833031 Members
2210 Online
110049 Solutions
New Discussion

console lines are wrapped around

 
SOLVED
Go to solution
support_5
Super Advisor

console lines are wrapped around

Hi all,

This is a pretty basic question. During the HP-UX boot sequence, the description of the rc script is displayed on the screen, and when it has completed, an 'OK' or 'FAIL' etc is displayed at the end of the line.

However, on one of my systems, I notice that the line are wrapped by about 6 characters so that the corresponding 'ok' is displayed below the description of the rc file (see attachment).

I know it's only cosmetic, but I was wondering why this was happening, and what can be done to stop it. It's just intriguing me.

Thanks

- Support
4 REPLIES 4
Sundar_7
Honored Contributor
Solution

Re: console lines are wrapped around

/sbin/rc script determines the length of the line to display based on the longest " start_msg" of your /sbin/init.d scripts.

Your "Configure HP Dual Port ...Adapter" is bit too lengthy

# cd /sbin/init.d
# grep -l "HP Dual Port" *
filename
#

Shorten the start_msg of the script

# vi filename
...
start_msg)
echo "Configure HP PCI-X adapter"
;;
..
#

Now, if possible, reboot the system and see if the line is wrapped again.
Learn What to do ,How to do and more importantly When to do ?
support_5
Super Advisor

Re: console lines are wrapped around

Hi,

I had a bit of a look at the /sbin/rc script but couldn't see where it determines the length of the line. However, I did shorten the start_msg of the file you mentioned and lo and behold, that fixed it. Easy!

Thanks heaps!

- Support
Sundar_7
Honored Contributor

Re: console lines are wrapped around

Hi Support :-),

/sbin/rc inturn uses /sbin/rc.utils. Refer /sbin/rc.utils. It has code to determine the longest description.

- Sundar.
Learn What to do ,How to do and more importantly When to do ?
support_5
Super Advisor

Re: console lines are wrapped around

right again, I realised this after looking closer at some procedure calls I didn't see in the rest of the file, and realised they were from a source script that gets sourced.

Thanks anyway.

- Support