Re: Control stdin/stdout of an other program.. How can I do that ?
- From: Maxim Yegorushkin <maxim.yegorushkin@xxxxxxxxx>
- Date: Fri, 14 Sep 2007 23:18:27 -0000
On Sep 14, 7:31 pm, Benoit Lefebvre <benoit.lefeb...@xxxxxxxxx> wrote:
[]
I would like my program to start ssh, get the "password:" prompt and
then issue the password. Once this is done, leave the session to me.
Like if I could send keys to a system() call.
Actually, this thing will be used to issue commands to many servers
at the same time to do basic administration.. like creating a user on
many systems.
I've seen in the past some softwares reading/writing to the passwd
command.. for example P-Synch from MTechIT.. the problem is that I
haven't seen the source code and I'm having problems finding what I am
looking for with the stdin/stdout/read/write keywords..
Anyone can refer me to an open source application that do soemthing
similar or a basic script example.
Have you seen this: http://en.wikipedia.org/wiki/Expect
.
- References:
- Control stdin/stdout of an other program.. How can I do that ?
- From: Benoit Lefebvre
- Control stdin/stdout of an other program.. How can I do that ?
- Prev by Date: Receiving UDP Broadcasts on Solaris 9, 10
- Next by Date: Re: Some questions on writing data to a serial port?
- Previous by thread: Control stdin/stdout of an other program.. How can I do that ?
- Next by thread: Re: Control stdin/stdout of an other program.. How can I do that ?
- Index(es):
Relevant Pages
|