This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re:Inetd and restart


Hi, I have this code written in Perl to restart inetd but nothing happens.

sub restart_serv
{
	$PROG = "c:/cygwin/usr/sbin/inetd.exe";

	$SIG{HUP} = \&phenix;

	sub phenix {

		exec($PROG) 		or die " can't restart : $!\n";

		   }


}

thanks.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]