Re: queuing up user input via writes to STDIN
- From: krahnj@xxxxxxxxx (John W. Krahn)
- Date: Thu, 27 Jul 2006 22:01:04 -0700
Gavin Bowlby wrote:
All:
Hello,
I have a program that reads STDIN for user commands while the program is
running.
I'm adding the capability to queue up user commands from the shell
command line when the program is invoked.
I'd like to be able to queue the command line data up in STDIN, so that
when the program goes into a loop reading STDIN, it will see the command
line data that was queued up as if it came from the command line.
It sounds like you may need the Expect module.
perldoc Expect
John
--
use Perl;
program
fulfillment
.
- References:
- queuing up user input via writes to STDIN
- From: Gavin Bowlby
- queuing up user input via writes to STDIN
- Prev by Date: queuing up user input via writes to STDIN
- Next by Date: calculate round trip time
- Previous by thread: queuing up user input via writes to STDIN
- Next by thread: Re: queuing up user input via writes to STDIN
- Index(es):
Relevant Pages
|