Re: queuing up user input via writes to STDIN



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
.



Relevant Pages

  • [PATCH] scsi: Scsi_Cmnd convertion in arm subtree
    ... Purpose: complete processing for command ... Params: ... queue a command for adapter to process. ...
    (Linux-Kernel)
  • Re: [PATCH 2/4] libata: Implement disk shock protection support
    ... with stopping the request queue anyway, ... Just to be sure, are you just referring to the queue lock, or to the host ... device internal power management will be disabled until the next command ... I'd have to protect the deadline field in struct ata_port by the ...
    (Linux-Kernel)
  • RE: Problems Printing After XP Upgrade from 98SE
    ... Can you print any local print jobs correctly in the system which ... Does the issue occur on only one Windows XP client or all other Windows ... | all of the jobs from the queue and print a test page from XP, ... |> Use the net.exe command to establish a persistent connection. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: send files to printer c windows api
    ... the command, while the document is queued up. ... Do you get the "30 second freeze" if you print using Open Office the ... it seems NOT to queue up multiple ...
    (comp.programming)
  • [SLE] Re: Kyocera FS-1020D *with* CUPS: Solved!
    ... > Normally this indicates that the queue name does not exist. ... Apparently, at least in this old version of cups, the web tool fails. ... It turns out to be very simple; LyX uses "dvips" as its Printer command, ... Printer name: kyocera ...
    (SuSE)