Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: non-blocking IO from open("-|")ing an external program with fcntl

by kikuchiyo (Friar)
on Jun 12, 2020 at 13:46 UTC ( #11117982=note: print w/replies, xml ) Need Help??


in reply to non-blocking IO from open("-|")ing an external program with fcntl

IIRC this doesn't work on Windows; in practice, the only useful thing you can use in a non-blocking way on that OS is a network socket. (At least, it doesn't work with straightforward, portable Perl code, you have to use a Win32 API call to achieve something comparable). (Also, this was true a few years ago on Windows 7. I haven't touched their newer products.)

If you search among my past writeups, you can find a worked GTK2 example that runs a background process and communicates bidirectionally with it.

  • Comment on Re: non-blocking IO from open("-|")ing an external program with fcntl

Replies are listed 'Best First'.
Re^2: non-blocking IO from open("-|")ing an external program with fcntl
by bliako (Monsignor) on Jun 12, 2020 at 14:17 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (1)
As of 2022-08-09 20:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?