in reply to How to execute external programs from perl script
In case your external program reads from stdin, you could try to simply pipe the respective character(s) into the program
system 'echo R | phylib sub_program_1';
If that doesn't work, i.e. if the program reads from the pty, you'd need to use Expect instead, as already suggested — but this simple approach is worth a try first.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How to execute external programs from perl script
by chak9988 (Initiate) on Feb 04, 2011 at 14:08 UTC | |
by Anonyrnous Monk (Hermit) on Feb 04, 2011 at 15:02 UTC | |
by chak9988 (Initiate) on Feb 04, 2011 at 16:40 UTC | |
by Anonyrnous Monk (Hermit) on Feb 04, 2011 at 17:30 UTC | |
by chak9988 (Initiate) on Feb 04, 2011 at 18:42 UTC | |
by Anonymous Monk on Mar 04, 2011 at 11:30 UTC |