Hi Folks!
I am using a Perl script (a) which opens several xterms, executing another script (b) for each xterm, which performs a login at a remote host via the Expect module. Script (b) calls the methos interact() in order to give IO control to the respective terminal (i.e. it then recognizes keyboard input).
That works fine up to this point.
Unfortunately, script (b) is still running after the remote login has been performed, because it gets stuck within the method interact(). Does anybody know how I can force script (b) to pass IO control to the xterm and then to terminate without terminating the xterm itself?
Greetz, Doc
I am using a Perl script (a) which opens several xterms, executing another script (b) for each xterm, which performs a login at a remote host via the Expect module. Script (b) calls the methos interact() in order to give IO control to the respective terminal (i.e. it then recognizes keyboard input).
That works fine up to this point.
Unfortunately, script (b) is still running after the remote login has been performed, because it gets stuck within the method interact(). Does anybody know how I can force script (b) to pass IO control to the xterm and then to terminate without terminating the xterm itself?
Greetz, Doc
Comment