Allright, and I know that PHP may not be the best language for the job, but I've written a server that controls a mysql box based on commands given it either through a telnet session or an automated client running from a cluster manager.
Anyway, I have one variant that runs using sockets. It works just fine. However, I also wrote it to take commands from and pump results back to stdin and stdout. I did this with the understanding that inetd and xinetd will pass info to and fro the script this way. However, I'm seeing errors and need more information regarding writing code to use services such as inetd and xinetd. Xinet.org is very sparse and there doesn't seem much out there that's giving up much info.
If anybody knows of something, it would be great.
Thanx,
Big Din K.R.