Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Checing presence of input on standard input in non-blocking way, sans user interaction

by Anonymous Monk
on Jul 17, 2013 at 14:18 UTC ( [id://1044819]=note: print w/replies, xml ) Need Help??


in reply to Checing presence of input on standard input in non-blocking way, sans user interaction

use the shift function to get standard input provided like that.

  • Comment on Re: Checing presence of input on standard input in non-blocking way, sans user interaction

Replies are listed 'Best First'.
Re^2: Checing presence of input on standard input in non-blocking way, sans user interaction
by marinersk (Priest) on Jul 17, 2013 at 15:37 UTC
    I am unaware of how shift can be used to indicate whether the user has typed something on the keyboard.

    I am also unaware of how shift can be used to determine if there is any data waiting to be read on STDIN from redirected input.

    Could you be so kind as to provide a working code example? That would be really cool information to have!

Re^2: Checing presence of input on standard input in non-blocking way, sans user interaction
by Anonymous Monk on Jul 17, 2013 at 14:41 UTC

    It's not standard input by the way, you have rerouted standard output in the other program.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1044819]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-04-19 08:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found