CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Win32 Programming Help:
Perl reading STDIN via inetd on windows error “Bad file descriptor”

 



dellair
New User

Jun 16, 2013, 8:01 AM

Post #1 of 1 (9975 views)
Perl reading STDIN via inetd on windows error “Bad file descriptor” Can't Post

I have inetd configured via Cygwin on Windows and started as service.

The script:########################STARTuse strict; use warnings; use IO::Socket; use IO::Handle; use IO::File; use IO::Select; print "input something\n";STDOUT-> autoflush (1); my $data = <STDIN> || die "(Failed reading STDIN) $^E (Error) $! (End)\n";########################END

On command line: telnet localhost

It fails immediately with: (Failed reading STDIN) The parameter is incorrect (Error) Bad file descriptor (End)

I have been searching for the whole google but couldn't find solution. Could anyone shed some lights on it?

Appreciated!

PS: The script works with linux-like OS.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives