For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > July 2007 > using rexec for invoking script









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author using rexec for invoking script
star

2007-07-17, 8:06 am

Hi,

I have a unix box which runs on HP UX. I want to execute a script
in another UNIX box in the same network. I want to do this using a
unix script in my current box. So i tried it using rexec utility. But
it is asking me for the password each and everytime. Is there a way to
automate the input of my password for the rexec utility.

Thanks
Star

Ulrich Eckhardt

2007-07-17, 7:07 pm

star wrote:
> I have a unix box which runs on HP UX. I want to execute a script
> in another UNIX box in the same network. I want to do this using a
> unix script in my current box. So i tried it using rexec utility. But
> it is asking me for the password each and everytime. Is there a way to
> automate the input of my password for the rexec utility.


Don't use rexec/rsh, it's insecure. Yes, it might not matter when you're in
a non-hostile network.

Instead, use SSH and setup key-based authentication.

Uli

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com