Operating System - HP-UX
1753338 Members
5289 Online
108792 Solutions
New Discussion юеВ

Re: 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 5
Dennis Handly
Acclaimed Contributor
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
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...