From: pat on 9 Apr 2010 20:57 <jimp(a)specsol.spam.sux.com> wrote in message news:idq497-1i3.ln1(a)mail.specsol.com... > pat <philpott.patrick(a)gmail.com> wrote: >> >> <jimp(a)specsol.spam.sux.com> wrote in message >> news:laj497-ao2.ln1(a)mail.specsol.com... >>> pat <philpott.patrick(a)gmail.com> wrote: >>>> All, >>>> >>>> Is there a max number of enteries in the /etc/services file? I'm >>>> running >>>> Solaris 9 and I've added 3 enteries for my applications and it works >>>> for >>>> one >>>> but not all 3. >>>> >>>> Thanks >>> >>> Nope, other than maybe the max size of an integer. >>> >>> By it not working do you mean netstat -a shows one service as a name and >>> the other two as numbers? >>> >>> >>> -- >>> Jim Pennino >>> >>> Remove .spam.sux to reply. >>> >> So if I I add these services to the /etc/services file and then run a >> netstat -a I should see them listed and if they are not listed what does >> that usually mean. >> >> A123 8500/tcp >> B123 8700/tcp >> C123 8900/tcp >> >> Thank you > > You will only see them with netstat if there is something actually running > on the port, which I foolishly assumed you already have. > > Otherwise, use something like "getent services 8500" and it should return > A123 8500/tcp. > > > -- > Jim Pennino > > Remove .spam.sux to reply. > Thanks for all your help dopey typo !!!!!!
From: Sami Ketola on 10 Apr 2010 03:55 pat <philpott.patrick(a)gmail.com> wrote: > All, > > Is there a max number of enteries in the /etc/services file? I'm running > Solaris 9 and I've added 3 enteries for my applications and it works for one > but not all 3. Applications do not need /etc/services for anything. They can open and listen a port regardless of if it's listed in /etc/services or not. So if your application fails to listen a port the problem is somewhere else and not in /etc/services. Fix your app. Sami
From: Chris Ridd on 10 Apr 2010 12:28 On 2010-04-10 08:55:58 +0100, Sami Ketola said: > pat <philpott.patrick(a)gmail.com> wrote: >> All, >> >> Is there a max number of enteries in the /etc/services file? I'm running >> Solaris 9 and I've added 3 enteries for my applications and it works for one >> but not all 3. > > Applications do not need /etc/services for anything. They can open and > listen a port regardless of if it's listed in /etc/services or not. Actually some will open their port by service name, so it *needs* to be in /etc/services (or NSS equivalent.) MIT's Kerberos does this, IIRC. > So if your application fails to listen a port the problem is somewhere > else and not in /etc/services. Fix your app. -- Chris
First
|
Prev
|
Pages: 1 2 Prev: Strange behaviour with sockets, SetSockOpt and Solaris 10 Next: modern firefox on Solaris 10 |