[LCP]InterProcess Communication
Y Giridhar Appaji Nag
Giridhar.Nag at ubinetics.co.in
Tue Nov 19 20:06:01 UTC 2002
On 19 November 2002 16:45 mehul radheshyam choube Wrote ...
> Basically my program needs to issue the cvs login
> command, wait for the password prompt, sends the password
> and wait for the login messages.
What you would like to do is probably better done using expect.
> My question is what kind of IPC should I use?
If you want to do it programatically from a C program, you might
like to use pipes (?). Infact, expect comes with a library called
libexpect which can be used from C programs.
> online docs will be of great help.
Take a look at man expect(1), libexpect(3), popen(3) etc.
Hope this helps,
Giridhar
--
Y Giridhar Appaji Nag Giridhar.Nag[@t]ubinetics(.)co.in
...And don't EVER make the mistake that you can design something
better than what you get from ruthless massively parallel trial-
and-error with a feedback cycle. That's giving your intelligence
_much_ too much credit. - Linus
an individual are not necessarily those of UbiNetics
More information about the linuxCprogramming
mailing list