inetd / xinetd not working under cygwin
Posted
by
Zimmy-DUB-Zongy-Zong-DUBBY
on Server Fault
See other posts from Server Fault
or by Zimmy-DUB-Zongy-Zong-DUBBY
Published on 2009-09-23T16:02:42Z
Indexed on
2011/11/15
1:57 UTC
Read the original article
Hit count: 761
I am trying to use xinetd (or inetd) with netcat to act as a TCP proxy. This setup works on Linux without issue.
Under Cygwin, either as a service or from the a Cygwin command line, the (x)inetd fails to open netcat, with the error "no such file or directory".
I have tried specifying /usr/bin/nc, /usr/bin/nc.exe, /cygdrive/d/cygwin/usr/bin/nc.exe, d:\cygwin\bin\nc.exe, and a TON of other combinations of forward flashes, backslashes, Windows paths and Cygwin paths. No matter what, I get errno 2, no such file or dir.
Any ideas? I need this working ASAP.
Edit: I thought it may have to do with it being in d:\cygwin (lame hardcoding?) but I tested it on a machine with cygwin on C:\, problem exists there too.
© Server Fault or respective owner