delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/04/18/04:14:16

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Wed, 18 Apr 2001 10:13:27 +0200
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: /etc/services
Message-ID: <20010418101327.L15962@cygbert.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <F98l6byoxxSQWBLYu7A00001384 AT hotmail DOT com> <20010417204828 DOT B4075511 AT MELON>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010417204828.B4075511@MELON>; from enochw@scn.org on Tue, Apr 17, 2001 at 08:48:28PM -0700

On Tue, Apr 17, 2001 at 08:48:28PM -0700, Enoch Wu wrote:
> Hi,
> 
> On Tue, Apr 17, 2001 at 05:15:14PM -0800, Curious Mind wrote:
> > 
> > 
> >   Does anyone know what creates the /etc/services file. I think this may be 
> > a source of some troubles im having with inetd because its calling on that 
> > file and it doesnt exist.
> 
> Just grab it from Windows. You can always use Windows' Find Files if your
> services file are not easily found. I found mine in c:\Windows\services - a
> true RFC1060 definition.

Correctamente, but don't grab it and copy it to /etc. Cygwin&Cie.
are using the one in the windows directory through the winsock32
calls. If you want a link in /etc (I'm doing that at home for
easier access) start the following script:

#!/bin/sh
cd /etc
rm -f services
_sys="`uname -a`"
_nt=`expr "$_sys" : "CYGWIN_NT"`
if [ $_nt -gt 0 ]
then
  _wservices="${SYSTEMROOT}\\system32\\drivers\\etc\\services"
else
  _wservices="${WINDIR}\\SERVICES"
fi
_services=`cygpath -u "${_wservices}"`
ln -s ${_services}

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019