Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3C47FD40.1020803@syntrex.com> Date: Fri, 18 Jan 2002 11:47:28 +0100 From: Pavel Tsekov User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: Jorge Goncalvez CC: cygwin AT cygwin DOT com Subject: Re: Stop ftp cygwin References: <200201181041 DOT LAA08421 AT cabs40 DOT col DOT bsf DOT alcatel DOT fr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Try connecting to port 21 and see if there is someone listening on the port. Another way is to have a known set of windows ftp servers and see if anyone of these is running - but this is not so easy task because you cant know each and every ftp server available for windows. just my .02 euro cents. Jorge Goncalvez wrote: > hi, I wanted to stop ftp cygwin if there is already a ftp server running but if > not i wnat to start ftp cygwin . > How can I know by code if there is already a ftp server running? -- 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/