Operating System - HP-UX
1833781 Members
2143 Online
110063 Solutions
New Discussion

Re: remsh std output is sometimes truncated

 
SOLVED
Go to solution
Anthony Giedlinski
Occasional Advisor

remsh std output is sometimes truncated

I hope this isn't a repeat; Netscape registered an error on the first attempt.

Since the Gold patch bundle for 11.11 from December 2002 has been applied, we have seen the following behavior from commands run through remsh:

sys1 # remsh sys2 'tail -500 /var/adm/syslog/syslog.log' |wc -l
500
sys1 # date
Wed Jun 18 21:31:47 EDT 2003
sys1 # remsh sys2 'tail -500 /var/adm/syslog/syslog.log'
<498 lines deleted for brevity>
Jun 18 21:31:57 sys2 inetd[2423]: registrar/tcp: Connection from sys1 (192.168.0.26) at Wed Jun 18 21:31:57 2003
Jun 18 21:32:03 sys2 inetd[2428]: shell/tcp: Connection from sys1 (192.168.0.26) at Wed Jun 18 21:32:03 2003
sys1 #

All is as expected. But when I pipe it through more or less, the output is truncated, and the pager does not respond to every command:

sys1 # remsh sys2 'tail -500 /var/adm/syslog/syslog.log' |more

ing down to the end of the output returned from the command we see:

Jun 18 21:29:58 sys2 inetd[3894]: registrar/tcp: Connection from sys1 (192.168.0.26) at Wed Jun 18 21:29:58 2003
Jun 18 21:30:18 sys2 inetd[4209]: auto_r
sys1 # date
Wed Jun 18 21:33:32 EDT 2003
sys1 #

The behavior is consistent between any 2 machines for any command which produces more than about 110 lines, but the amount truncated is variable. All systems are trusted, NIS is not used, less shows about 260 lines available for browsing, redirection of the output to a file captures all lines, and it would be great if someone was able to tell me what is wrong.

Thanks,
Tony Giedlinski
7 REPLIES 7
Ollie R
Respected Contributor
Solution

Re: remsh std output is sometimes truncated

Hi Tony,

Try including the "-n" option before the command like so:

remsh sys2 -n 'tail -500 /var/adm/syslog/syslog.log' |more

That should fix it.

Ollie.
To err is human but to not award points is unforgivable
Ollie R
Respected Contributor

Re: remsh std output is sometimes truncated

Hi Tony,

Try including the "-n" option before the command like so:

remsh sys2 -n 'tail -500 /var/adm/syslog/syslog.log' |more

That should fix it.

Ollie.
To err is human but to not award points is unforgivable
Ollie R
Respected Contributor

Re: remsh std output is sometimes truncated

Hi Tony,

Try including the "-n" option before the command like so:

remsh sys2 -n 'tail -500 /var/adm/syslog/syslog.log' |more

That should fix it.

Ollie.
(This is the 3rd attempt to post this message - ITRC seems to be going through its "7:30 freeze" again! Sorry if this is repeated a few times......)
To err is human but to not award points is unforgivable
Ollie R
Respected Contributor

Re: remsh std output is sometimes truncated

Hi Tony,

Try including the "-n" option before the command like so:

remsh sys2 -n 'tail -500 /var/adm/syslog/syslog.log' |more

That should fix it.

Ollie.
(This is the 3rd attempt to post this message - ITRC seems to be going through its "7:30 freeze" again! Sorry if this is repeated a few times......)
To err is human but to not award points is unforgivable
Anthony Giedlinski
Occasional Advisor

Re: remsh std output is sometimes truncated

Thanks, Ollie

That did the trick. I still wonder why the problem didn't show up until the patches were applied . . . ;-)

Tony G.
Ollie R
Respected Contributor

Re: remsh std output is sometimes truncated

Hi Tony,

Don't forget to award points when someone helps you (hint, hint, subtle hint)!

Ollie.
To err is human but to not award points is unforgivable
Anthony Giedlinski
Occasional Advisor

Re: remsh std output is sometimes truncated

Ollie,

I tried to leave points when I thanked you; I'm giving it another shot now.

Of course, what can you expect? I didn't even think of '-n' ; I thought that was for remote system responses only. .-)

Tony.