PLEX86  x86- Virtual Machine (VM) Program
 Plex86  |  CVS  |  Mailing List  |  Download  |  Linux  |  Newsgroups

Controlling kermit shell from within CC


Your Ad Here

Your Ad Here

NTP problem I think
My main machine communicates with four NTP time servers and seems to synchronize very well. For...

Hi folks,

I'm in a difficult situation where I need to be able to control the kermit shell from within my C-C++ application.

what kind of linux commercial solutions is exsit 265
somez72 If you mean who has larger scale enterprise clbutt support, these are the ones I am aware of: RedHat Novell Suse Ubuntu (if not now, soon will) IBM typically offers support and services around...

I tried the standard fork()+dup2() tricks to connect pipes to the child's (kermit's) stdin-out-err to the parent. However, when controlling kermit this way, kermit requires that the pipe connected to stdin be closed before it'll actually respond to the given commands (although I can see in kermit's debug.log that it received the commands and processed them). This is unacceptable, as I need to dynamically generate and send numerous commands to kermit from my application.

I think the problem in the above-mentioned approach is kermit "knows" that it's parent is not really a tty. So, I am experimenting with forkpty() to launch kermit under a pseudo-terminal, but I'm having problems with that approach as well (we can discuss this more, if necessary).

One annoying requirement is that kermit must remain open between commands, as closing it down is far too slow b-c of delays releasingdev-ttyS0.

Also, kermit is my application of choice because: a) it's nicely scriptable b) it can wait for particular prompts from the remote host c) it saves me the trouble of figuring out how to open, condition, utilize, and close the line to the remote host over a serial line

what kind of linux commercial solutions is exsit 266
On Fri, 27 Jan 2006 08:57:27 -0500, Ken K staggered into the Black Sun and said: This is kind...

If it matters, I only need to make this work on Fedora Core 3 (Linux 2.6.9).

Anyway, I was hoping someone could give some advice-direction here.

Thanks, Adam



Your Ad Here

List | Previous | Next

what kind of linux commercial solutions is exsit 265

Linux groups from Newsgroups

The #1 Usenet Provider on the Internet

Error installing NI 488 drivers