Re: [gdm-list] Gdm awaiting for network



On Tue, 26 Aug 2008 12:26:50 +0200, Riccardo Tritto wrote:

> Il giorno lun, 25/08/2008 alle 12.43 -0500, Brian Cameron ha scritto:
> 
>> The problem might be something relating to gethostname().  If you write
>> a standalone program which makes similar calls as in the GDM code, does
>> it also hang?
> 
> Sorry, I'm just a Linux user, how could I write such a standalone
> program?

You can do this with python:

  $ python
  Python 2.5.2 (r252:60911, Aug  8 2008, 09:22:44) 
  [GCC 4.3.1] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  >>> import socket
  >>> socket.gethostbyname ('debian.org')
  '192.25.206.10'

-- 
Sam Morris
http://robots.org.uk/
 
PGP key id 1024D/5EA01078
3412 EA18 1277 354B 991B  C869 B219 7FDB 5EA0 1078



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]