HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

terminal can't start a new line

 
SOLVED
Go to solution
yangk
Frequent Advisor

terminal can't start a new line

In the hpux 11.11 , i start a sshd daemon process, and i use the ps -ef| grep sshd to
look the sshd daemon process, but it can't display the whole line, just a part of it.And it also does not start a new line to display the reminder.
so what is the problem?Is the problem of stty?
Thanks!
5 REPLIES
Solution

Re: terminal can't start a new line

If you want more of the ps output for sshd you'll need to use:
UNIX95=EXTENDED_PS ps -Hf -C sshd -x
Torsten.
Acclaimed Contributor

Re: terminal can't start a new line

I would check if the terminal emulation and size setting is correct.

# echo $TERM
# resize

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Asif Sharif
Honored Contributor

Re: terminal can't start a new line

is it looks like this?

# ps -ef|grep sshd
root 827 1 0 20:16:53 ? 0:00 /opt/ssh/sbin/sshd

Regards,
Asif Sharif
yangk
Frequent Advisor

Re: terminal can't start a new line

thank you Dennis Handly .
It works right, and I find a simple way to display ,just use the ps -efx|grep sshd
and it will display the whole line.
James R. Ferguson
Acclaimed Contributor

Re: terminal can't start a new line

Hi:

> It works right, and I find a simple way to display ,just use the ps -efx|grep sshd
and it will display the whole line.

That is a dangerous way to find matching processes since the 'grep' will match the string _anywhere_ in the output line. The use of the '-C' switch and argument as Dennis suggested limits the output to processes with an _exact_ match to their command's basename. You would be wise to heed this advice.

Regards!

...JRF...