Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what in the unix is this and...? 2

Status
Not open for further replies.

jbay

Technical User
Feb 24, 2000
22
0
0
US
Visit site
hi...my names james, and thanks for your help and time with this...i'm at the console monitor and it says this in 2 lines;1st line &quot;INIT: Command is respawning too rapidly. Check for possible errors. 2nd line &quot;id: 14 &quot;getty tty14 9600P # HR/Admin Support&quot;....1st, what does this say in lay terms and what does this mean? 2nd, how do i fix it and get to my prompt as before this? 3rd where and how do i check for errors?..,lastly, HELP ME before i go nuts...thank you so much...mahalos...james<br>
<br>
i am so new to unix its sad...books help to an extent...whatever step by step you can offer me to resolve this and space clearing problems, overall system optimizing would be tremendously appreciated <p>james bay<br><a href=mailto:rgscom@aol.com>rgscom@aol.com</a><br><a href= > </a><br>please bare with me with regard to my questions...i'm trying to comprehend the vast concepts as they apply to computers in general and at times forget the KISS philosophy and i do so appreciate your insights/step by step guidance and overall your generosi
 
Stick with it James - you're doing OK :)<br>
<br>
Now, the problem you're seeing is related to a login terminal. The &quot;getty&quot; program is responsible for displaying the &quot;login&quot; prompt on terminals. (I think it stands for &quot;Get tty&quot; - ie, get something from the teletype terminal.)<br>
<br>
The way getty works is that it displays the login prompt to the terminal. When a user types in a login name and presses &lt;Return&gt;, <FONT FACE=monospace>getty</font> sends this to the &quot;login&quot; program which then asks for the user's password, logs the user in, etc. <FONT FACE=monospace>getty</font> then disappears into the background until all other processes on the terminal die. It then pops back into life, waiting for a user to log in.<br>
<br>
This is known as &quot;respawning&quot;.<br>
<br>
The &quot;<FONT FACE=monospace>init</font>&quot; process looks after the <FONT FACE=monospace>getty</font> process (as well as everything else :) and is responsible for making sure the respawning takes place. The message you're seeing is from <FONT FACE=monospace>init</font>, and it's complaining that it's having to respawn the <FONT FACE=monospace>getty</font> process on port &quot;tty14&quot; too often.<br>
<br>
This usually means that, for some reason, tty14 has become disconnected from it's serial port.<br>
<br>
You need to do two things:<br>
<br>
1) Disable the &quot;getty&quot; process temporarily. To do this, edit the file &quot;<FONT FACE=monospace>/etc/inittab</font>&quot;. You'll need to be logged in as &quot;root&quot; to do this. Look for the line containing &quot;tty14&quot; and comment it out by entering a &quot;#&quot; character as the first character on the line. (Before editing inittab, take a copy of it just in case of any problems. eg &quot;<FONT FACE=monospace>cp /etc/inittab /etc/inittab.orig</font>&quot;.)<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;Save the change to inittab and drop back to the shell. Type the command &quot;<FONT FACE=monospace>telinit q</font>&quot;. If you get &quot;command not found&quot;, try &quot;<FONT FACE=monospace>/etc/telinit q</font>&quot;. If it's still not found, &quot;<FONT FACE=monospace>/sbin/init q</font>&quot;. What these commands will do is tell the init process to re-read /etc/inittab and process the entries. It will spot that tty14 is commented out, and stop respawning getty to that port.<br>
<br>
2) Identify which screen is tty14 and fix the problem with it :) (From the message, which contains a comment from inittab, I'm guessing it's in the HR department...) This could be as simple as reconnecting a loose RS-232 cable, or it may be that the terminal is dead.<br>
<br>
3) Once you've fixed the problem with tty14, copy &quot;<FONT FACE=monospace>/etc/inittab.orig</font>&quot; back to &quot;<FONT FACE=monospace>/etc/inittab</font>&quot; and run the telinit command again.<br>
<br>
Hope this helps :)
 
i'm stickin' with no doubt, its the only i will learn this...but man am i in a world of hurt or what right now...as we speak...i type something at the console terminal and all that comes back on the terminal display are 'x's, thats it, just 'x's...not only that but my prompt has changed to'#' verse what it was before which was RoyalGrd&gt;...the screen will not clear when i type 'cls'...space errors gallor...slow output....arrrrggghhhh!!!...what do i do...? really i'm not a bone head i just play one when dealing with an os that i've never dealt with before and am now responsible for...again any and all help on optimizing this system would greatly be appreciated...mahalos...james <p>james bay<br><a href=mailto:rgscom@aol.com>rgscom@aol.com</a><br><a href= > </a><br>please bare with me with regard to my questions...i'm trying to comprehend the vast concepts as they apply to computers in general and at times forget the KISS philosophy and i do so appreciate your insights/step by step guidance and overall your generosi
 
It sounds like your system console has somehow been set to the wrong baud rate. The &quot;x&quot;'s that you're seeing when you type are a result of this. (At least, this is something that's happened to me before.)<br>
<br>
Go into the terminal settings on the terminal itself, and try changing the baud rate to 9600, 19200, and 38400. One of these should work. Don't forget to save the terminal settings after you change them :)<br>
<br>
The fact your prompt has changed is a different problem. Do you have a file called &quot;<FONT FACE=monospace>/.profile</font>&quot;? This is the script that will be executed when &quot;root&quot; logs in. Kind of like a personal &quot;autoexec.bat&quot; for root.<br>
<br>
This file is held in the user's home directory, and executed each time they log in. It sounds like your root .profile has ben moved somewhere, or removed.<br>
<br>
It's usually in the user's .profile that their prompt is changed. Log in to root and try typing:<br>
<FONT FACE=monospace><br>
PS1=&quot;RoyalGrd&gt; &quot;<br>
export PS1<br>
</font><br>
This should set your prompt back to what it was before, and would probably have been held in your root &quot;.profile&quot;.<br>
<br>
A missing .profile would also explain not being able to find &quot;<FONT FACE=monospace>cls</font>&quot;. The usual command under Unix for clearing a screen is &quot;<FONT FACE=monospace>clear</font>&quot;. It sounds like someone has created a &quot;cls&quot; script that runs &quot;clear&quot; to clear the screen, and that this has been created in a non-standard place. ie, &quot;/usr/local/bin&quot;.<br>
<br>
Try the following command:<br>
<FONT FACE=monospace><br>
find / -name cls -print<br>
</font><br>
This will locate the &quot;missing&quot; cls script. You will need to add the directory that contains the script back into your $PATH environment variable, like so:<br>
<FONT FACE=monospace><br>
PATH=$PATH:/usr/local/bin<br>
</font><br>
Where &quot;/usr/local/bin&quot; is the directory that contains &quot;cls&quot;. Put this into &quot;/.profile&quot; to make this change permanent for &quot;root&quot;.<br>
<br>
If the find command doesn't find a &quot;cls&quot; command, then it was probably set up as a shell alias, or function. Again, this would have been held in &quot;/.profile&quot;.<br>
<br>
Sorry for rambling on, but, as always, hope this helps :)
 
by no means is it rambling and if so as robert plant screamed many years ago and is still echoed 'ramble on'...anyways i read what your saying but still not able to grasp/comprehend what it is, the concepts of it all...i'm trying to gain the fundamental basics and all of this unix os, as it is brand new to me and am now the sysadm for my small (thank god)network at the office...i'm here to build an NT based one but just been told that wont happen for awhile due to budget and to concentrate on optimizing and trouble shooting the one existing unix 5 version 3.2 that is up and barely crawling...i do appreciate a great deal the fact that you take the time from your busy schedule to assist me andybo...so a gracious thanks to you and of course a most humble thanks to those others that are as generous...so ramble on...mahalos...james<br>
<p>james bay<br><a href=mailto:rgscom@aol.com>rgscom@aol.com</a><br><a href= > </a><br>please bare with me with regard to my questions...i'm trying to comprehend the vast concepts as they apply to computers in general and at times forget the KISS philosophy and i do so appreciate your insights/step by step guidance and overall your generosi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top