1829665 Members
17076 Online
109992 Solutions
New Discussion

Re: remsh command

 
Chris Kubacki
New Member

remsh command

I was wondering if it is possible to have the "remsh" command process two other commands on a remote machine. I am trying to run "top" on another machine, but I have to set the term first. If I type remsh remote_machine -n top, I get "Sorry, I need to know a more specific terminal type than 'unknown'." When I set the term first and then use top, top executes on my current machine. This is what I have tried.

remsh remote_machine -n set term = dtterm ; top -d1

Any suggestions how I can run top on a remote machine without using rlogin. I am trying to use it in a script.

Many thanks in Advance!

Chris
5 REPLIES 5
Alan Riggs
Honored Contributor

Re: remsh command

You must quote the command string. The shell is interpreting the ";" as the end of the remsh command. Try:

remsh -n "export TERM=hpterm; top -d1"
Chris Kubacki
New Member

Re: remsh command

Thanks Alan! It worked like a charm.

Chris
Jason Luginbuhl
Frequent Advisor

Re: remsh command

Chris,

Under the new point system, you may want to give Alan some points for that one!

Jason Luginbuhl
HP Response Center
"Unfortunately you can't out-program stupidity"
Chris Kubacki
New Member

Re: remsh command

Jason,
I tried to give Alan points, but I received the following error message when I hit the 'Assign Point' button.

"Due to malformed syntax, the request could not be understood by the server. The client should not repeat the request without modifications."

Any suggestions?

Chris
Jeff Siegle
Frequent Advisor

Re: remsh command

Hi Chris-

Sorry it didn't work the first time... it should be fixed now. Please try again, and if you continue to have problems, please use the Forums Feedback (on the Forum Home Page underneath the discusison areas) to let us know.

Cheers-
Jeff
A cord of three strands is not easily broken