in reply to more problems running a program that hogs the termnial

Your Perl code creates Unidirectional communications. You need to create a way to talk to the Remote program. See: perlipc::Bidirectional Communication. Which makes the case for using a Module.

Note also that interrupting the input stream may require special handling. See: perlipc::Safe Signals look down under "Interrupting I/O".


s/interupt/interrupt/


s//----->\t/;$~="JAPH";s//\r<$~~/;{s|~$~-|-~$~|||s |-$~~|$~~-|||s,<$~~,<~$~,,s,~$~>,$~~>,, $|=1,select$,,$,,$,,1e-1;print;redo}
  • Comment on Re: more problems running a program that hogs the termnial

Replies are listed 'Best First'.
Re^2: more problems running a program that hogs the termnial
by GaijinPunch (Pilgrim) on Apr 16, 2005 at 07:00 UTC
    Sorry for the late reply everyone. I came home last night and crashed... had a long one today. :( I tried prepending "quit |" to the command, but that isn't working so well. It runs the program, but without the proper arguments. Not sure why, but maybe I could goof around with it.

    Anyways, there are some good ideas here. I will play around a bit more after the weekend and try again. The other option is to recompile the program and not have it loop (waiting for more input). I have the source, but I'm about as good as C as I am at administering dental work.