Link to home
Start Free TrialLog in
Avatar of llucy88
llucy88

asked on

unix shell script language

I have a sever which installed AIX, another machine using no modern cable directly connected to it. If I want to send command from server to machine B and capture the response from machine B, what kind of shell script language can perform such function?

Any hint, website info. will be helpful!

Thank you!

llucy
Avatar of ozo
ozo
Flag of United States of America image

rsh
ASKER CERTIFIED SOLUTION
Avatar of jacquesc030600
jacquesc030600

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of llucy88
llucy88

ASKER

Adjusted points from 66 to 100
Avatar of llucy88

ASKER

Thanks! If I want to use the shell script to send command from server to client and capture the response from the client, which shell script can be used as this purpose? Any suggestion on books or links for further information?

Thank you very much!!!
Here are my opinions; but, only applied on HP-UX. It should be almost the same as AIX.

1) To smooth your operation, both machines should have the same ID and password.

2) In HP-UX, the command is:
   remsh machine-name <command> or
   remsh machineB bdf
   NOTE: To apply in AIX, you could type: man -k shell    to check the actual defination of remote shell command.

3) In HP-UX, you need to add the machineB name, login name, and password
into the file name .rhost in order to execute the command remotely in machineB.
   NOTE: If you found the actual remote shell command in AIX through step 2, you should be able to know the actual steps to setup the shell scripts to monitor the machineB with remote shell command.