> > I have a script that listens on a port for a connection, receives some > data over that connection, and writes it to a file. > > This works, but it takes up CPU cycles, RAM etc. when it waits. I am > trying to get the script to use xinetd instead. That way the > tcp daemon > will launch it when needed and let it die when it's done. > > What I get when xinetd runs it,however, is "bind: Address already in > use". > > Here's the script. (Fervent readers of Ellie Quigley will > recognize it > right off as a modified copy of Example 18.21." > > (My /etc/services file contains the entry (nukem 2222/tcp".) >
You could run the script as a deamon, then control it through xinetd or inetd.conf. I don't think this script running as a daemon will take too much resource. help with daemons: http://webreference.com/perl/tutorial/9/ http://search.cpan.org/author/JWIED/Net-Daemon-0.37/lib/Net/Daemon.pm http://search.cpan.org/author/RHANDOM/Net-Server-0.84/lib/Net/Server.pm -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]