Operating System - HP-UX
1833875 Members
3302 Online
110063 Solutions
New Discussion

Re: Using remsh in shell script

 
SOLVED
Go to solution
Henry Chua
Super Advisor

Using remsh in shell script

I have wrote a script in shell which is suppose to loop for a number of times, each time doing a specific thus e.g. creating, deleting etc. files in a remote box.

"remsh HOSTNAME mkdir DIR" ..... but the loop always break after performing a remote task.. is there any reason for this to happen? How can i make it loop for a desirable number of times. Thank u.
3 REPLIES 3
Sanjay Kumar Suri
Honored Contributor
Solution

Re: Using remsh in shell script

Check if this thread answers:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=135275

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Nguyen Anh Tien
Honored Contributor

Re: Using remsh in shell script

Hi Henry.
It will be better for me if you post you script. I will keep it track..
Look at basic shell command at
http://docs.hp.com/en/B2355-90046/index.html
hope this link help
tienna
HP is simple
Henry Chua
Super Advisor

Re: Using remsh in shell script

Thanks Sun for your this new yr gift!!

Many thanks for your help guys!!

HAPPY NEW YR!! ^_^