From owner-freebsd-python@FreeBSD.ORG  Wed Aug 18 16:21:53 2004
Return-Path: <owner-freebsd-python@FreeBSD.ORG>
Delivered-To: freebsd-python@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 73D1316A4CE
	for <freebsd-python@freebsd.org>;
	Wed, 18 Aug 2004 16:21:53 +0000 (GMT)
Received: from web25405.mail.ukl.yahoo.com (web25405.mail.ukl.yahoo.com
	[217.12.10.139])	by mx1.FreeBSD.org (Postfix) with SMTP id E852243D41
	for <freebsd-python@freebsd.org>;
	Wed, 18 Aug 2004 16:21:52 +0000 (GMT)
	(envelope-from max_russell2000@yahoo.co.uk)
Message-ID: <20040818100943.44985.qmail@web25405.mail.ukl.yahoo.com>
Received: from [194.247.82.75] by web25405.mail.ukl.yahoo.com via HTTP;
	Wed, 18 Aug 2004 11:09:43 BST
Date: Wed, 18 Aug 2004 11:09:43 +0100 (BST)
From: =?iso-8859-1?q?Max=20Russell?= <max_russell2000@yahoo.co.uk>
To: freebsd-python@freebsd.org
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Subject: startfile() equivalent
X-BeenThere: freebsd-python@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: FreeBSD-specific Python issues <freebsd-python.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
	<mailto:freebsd-python-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-python>
List-Post: <mailto:freebsd-python@freebsd.org>
List-Help: <mailto:freebsd-python-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
	<mailto:freebsd-python-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2004 16:21:53 -0000

Hello-

I'm scripting a little thing to pick a random MAME
file and launch it (save me the hassle of choosing
one).

How can I do the equivalent to the python win32
startfile()? Does startfile work on BSD/Linux?

If I cannot use this, how can I say execute this command?


	
	
		
___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun!  http://uk.messenger.yahoo.com

From owner-freebsd-python@FreeBSD.ORG  Thu Aug 19 02:19:08 2004
Return-Path: <owner-freebsd-python@FreeBSD.ORG>
Delivered-To: freebsd-python@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7A08D16A4CE
	for <freebsd-python@freebsd.org>;
	Thu, 19 Aug 2004 02:19:08 +0000 (GMT)
Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.194])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2566C43D41
	for <freebsd-python@freebsd.org>;
	Thu, 19 Aug 2004 02:19:08 +0000 (GMT)
	(envelope-from hyeshik@gmail.com)
Received: by mproxy.gmail.com with SMTP id 80so211455rnk
	for <freebsd-python@freebsd.org>;
	Wed, 18 Aug 2004 19:19:07 -0700 (PDT)
Received: by 10.38.206.39 with SMTP id d39mr1617916rng;
        Wed, 18 Aug 2004 19:19:05 -0700 (PDT)
Message-ID: <4f0b69dc0408181919172d239d@mail.gmail.com>
Date: Thu, 19 Aug 2004 11:19:05 +0900
From: Hye-Shik Chang <hyeshik@gmail.com>
To: Max Russell <max_russell2000@yahoo.co.uk>
In-Reply-To: <20040818100943.44985.qmail@web25405.mail.ukl.yahoo.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
References: <20040818100943.44985.qmail@web25405.mail.ukl.yahoo.com>
cc: freebsd-python@freebsd.org
Subject: Re: startfile() equivalent
X-BeenThere: freebsd-python@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
Reply-To: Hye-Shik Chang <hyeshik@gmail.com>
List-Id: FreeBSD-specific Python issues <freebsd-python.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
	<mailto:freebsd-python-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-python>
List-Post: <mailto:freebsd-python@freebsd.org>
List-Help: <mailto:freebsd-python-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
	<mailto:freebsd-python-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Aug 2004 02:19:08 -0000

On Wed, 18 Aug 2004 11:09:43 +0100 (BST), Max Russell
<max_russell2000@yahoo.co.uk> wrote:
> Hello-
> 
> I'm scripting a little thing to pick a random MAME
> file and launch it (save me the hassle of choosing
> one).
> 

> Does startfile work on BSD/Linux?

os.startfile() is only available in Windows.

> How can I do the equivalent to the python win32
> startfile()?
> 
> If I cannot use this, how can I say execute this command?
> 

It depends what your desktop environment is.  If you run GNOME,
you can write it like this:

 import os
 def startfile(url):
   os.system("gnome-open " + url) # quote if you can't trust user.


Hye-Shik

From owner-freebsd-python@FreeBSD.ORG  Thu Aug 19 11:20:11 2004
Return-Path: <owner-freebsd-python@FreeBSD.ORG>
Delivered-To: freebsd-python@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9279916A4CE
	for <freebsd-python@freebsd.org>;
	Thu, 19 Aug 2004 11:20:11 +0000 (GMT)
Received: from etustar.ze.tum.de (etustar.ze.tum.de [129.187.39.96])
	by mx1.FreeBSD.org (Postfix) with ESMTP id F39F843D39
	for <freebsd-python@freebsd.org>;
	Thu, 19 Aug 2004 11:20:10 +0000 (GMT)
	(envelope-from estartu@etustar.ze.tum.de)
Received: from etustar.ze.tum.de (estartu@localhost.ze.tu-muenchen.de
	[127.0.0.1])
	by etustar.ze.tum.de (8.12.11/8.12.11) with ESMTP id i7JBK94B052359;
	Thu, 19 Aug 2004 13:20:09 +0200 (CEST)
	(envelope-from estartu@etustar.ze.tum.de)
Received: (from estartu@localhost)
	by etustar.ze.tum.de (8.12.11/8.12.11/Submit) id i7JBK99K052358;
	Thu, 19 Aug 2004 13:20:09 +0200 (CEST)
	(envelope-from estartu)
Date: Thu, 19 Aug 2004 13:20:09 +0200
From: Gerhard Schmidt <estartu@augusta.de>
To: freebsd-python@freebsd.org
Message-ID: <20040819112009.GA52222@augusta.de>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-md5;
	protocol="application/pgp-signature"; boundary="NzB8fVQJ5HfG6fxh"
Content-Disposition: inline
User-Agent: Mutt/1.4.1i
Subject: Probelem with freeBSD and Zope
X-BeenThere: freebsd-python@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: FreeBSD-specific Python issues <freebsd-python.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
	<mailto:freebsd-python-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-python>
List-Post: <mailto:freebsd-python@freebsd.org>
List-Help: <mailto:freebsd-python-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
	<mailto:freebsd-python-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Aug 2004 11:20:11 -0000


--NzB8fVQJ5HfG6fxh
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,=20

i=B4m running a zope server on an FreeBSD machine with 2 Gig physical Ram.=
=20
when the python process reaches a size of 512M it dies with sig11. anyone
an Idea what to do about that.=20

Bye
	Estartu

----------------------------------------------------------------------------
Gerhard Schmidt    | Nick : estartu      IRC : Estartu  |  PGP Public Key
Fischbachweg 3     | Privat: estartu@augusta.de         |   auf Anfrage/
86856 Hiltenfingen | Dienst: schmidt@ze.tu-muenchen.de  |    on request

--NzB8fVQJ5HfG6fxh
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: xXinZpy3Zf2Mfezeuas8+Kui1U/I/Tcz

iQCVAwUBQSSM6Azx22nOTJQRAQGiXQP/cUgD0YQeA4VRy6ThoLr0tS3Y+ZKlUr5V
4Emw9Z42NiHzbb5mOvg6/G2aAo38ygwYoDdNIJDaZumJ4KIawlE9PwWwL6z3ZbLw
i0YhwYj7o6iUCqQ9WNgYPSuyUwBITuFXDaYgw3qnPca5Cg1iwsQqzasteBiIPA1s
4Tb7/Y78UhE=
=Dnp5
-----END PGP SIGNATURE-----

--NzB8fVQJ5HfG6fxh--

From owner-freebsd-python@FreeBSD.ORG  Thu Aug 19 11:32:43 2004
Return-Path: <owner-freebsd-python@FreeBSD.ORG>
Delivered-To: freebsd-python@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 57B2016A4CE
	for <freebsd-python@freebsd.org>;
	Thu, 19 Aug 2004 11:32:43 +0000 (GMT)
Received: from web25407.mail.ukl.yahoo.com (web25407.mail.ukl.yahoo.com
	[217.12.10.141])	by mx1.FreeBSD.org (Postfix) with SMTP id 8D85B43D58
	for <freebsd-python@freebsd.org>;
	Thu, 19 Aug 2004 11:32:42 +0000 (GMT)
	(envelope-from max_russell2000@yahoo.co.uk)
Message-ID: <20040819075641.97538.qmail@web25407.mail.ukl.yahoo.com>
Received: from [194.247.82.75] by web25407.mail.ukl.yahoo.com via HTTP;
	Thu, 19 Aug 2004 08:56:41 BST
Date: Thu, 19 Aug 2004 08:56:41 +0100 (BST)
From: =?iso-8859-1?q?Max=20Russell?= <max_russell2000@yahoo.co.uk>
To: Hye-Shik Chang <hyeshik@gmail.com>
In-Reply-To: <4f0b69dc0408181919172d239d@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
cc: freebsd-python@freebsd.org
Subject: Re: startfile() equivalent
X-BeenThere: freebsd-python@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: FreeBSD-specific Python issues <freebsd-python.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
	<mailto:freebsd-python-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-python>
List-Post: <mailto:freebsd-python@freebsd.org>
List-Help: <mailto:freebsd-python-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
	<mailto:freebsd-python-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Aug 2004 11:32:43 -0000

Is this soley for opening URLs though? I am wanting to
launch MAME with Python- could I substitute the URL
with the path to the application?

 --- Hye-Shik Chang <hyeshik@gmail.com> wrote: 
> On Wed, 18 Aug 2004 11:09:43 +0100 (BST), Max
> Russell
> <max_russell2000@yahoo.co.uk> wrote:
> > Hello-
> > 
> > I'm scripting a little thing to pick a random MAME
> > file and launch it (save me the hassle of choosing
> > one).
> > 
> 
> > Does startfile work on BSD/Linux?
> 
> os.startfile() is only available in Windows.
> 
> > How can I do the equivalent to the python win32
> > startfile()?
> > 
> > If I cannot use this, how can I say execute this
> command?
> > 
> 
> It depends what your desktop environment is.  If you
> run GNOME,
> you can write it like this:
> 
>  import os
>  def startfile(url):
>    os.system("gnome-open " + url) # quote if you
> can't trust user.
> 
> 
> Hye-Shik
> _______________________________________________
> freebsd-python@freebsd.org mailing list
>
http://lists.freebsd.org/mailman/listinfo/freebsd-python
> To unsubscribe, send any mail to
> "freebsd-python-unsubscribe@freebsd.org"
>  


	
	
		
___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun!  http://uk.messenger.yahoo.com

From owner-freebsd-python@FreeBSD.ORG  Thu Aug 19 11:36:47 2004
Return-Path: <owner-freebsd-python@FreeBSD.ORG>
Delivered-To: freebsd-python@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id F20E416A4CE
	for <freebsd-python@freebsd.org>;
	Thu, 19 Aug 2004 11:36:47 +0000 (GMT)
Received: from web25404.mail.ukl.yahoo.com (web25404.mail.ukl.yahoo.com
	[217.12.10.138])	by mx1.FreeBSD.org (Postfix) with SMTP id 2C07843D3F
	for <freebsd-python@freebsd.org>;
	Thu, 19 Aug 2004 11:36:47 +0000 (GMT)
	(envelope-from max_russell2000@yahoo.co.uk)
Message-ID: <20040819095330.14270.qmail@web25404.mail.ukl.yahoo.com>
Received: from [194.247.82.75] by web25404.mail.ukl.yahoo.com via HTTP;
	Thu, 19 Aug 2004 10:53:30 BST
Date: Thu, 19 Aug 2004 10:53:30 +0100 (BST)
From: =?iso-8859-1?q?Max=20Russell?= <max_russell2000@yahoo.co.uk>
To: Hye-Shik Chang <hyeshik@gmail.com>
In-Reply-To: <4f0b69dc0408181919172d239d@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
cc: freebsd-python@freebsd.org
Subject: Re: startfile() equivalent
X-BeenThere: freebsd-python@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: FreeBSD-specific Python issues <freebsd-python.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
	<mailto:freebsd-python-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-python>
List-Post: <mailto:freebsd-python@freebsd.org>
List-Help: <mailto:freebsd-python-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
	<mailto:freebsd-python-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Aug 2004 11:36:48 -0000

Also- I do not launch x-mame from the GUI, I use a
script (in Perl) to select and choose my game of
choice. So I suppose what I am looking for is
something that allows me to use a *nix system command
from within a Python script.

 --- Hye-Shik Chang <hyeshik@gmail.com> wrote: 
> On Wed, 18 Aug 2004 11:09:43 +0100 (BST), Max
> Russell
> <max_russell2000@yahoo.co.uk> wrote:
> > Hello-
> > 
> > I'm scripting a little thing to pick a random MAME
> > file and launch it (save me the hassle of choosing
> > one).
> > 
> 
> > Does startfile work on BSD/Linux?
> 
> os.startfile() is only available in Windows.
> 
> > How can I do the equivalent to the python win32
> > startfile()?
> > 
> > If I cannot use this, how can I say execute this
> command?
> > 
> 
> It depends what your desktop environment is.  If you
> run GNOME,
> you can write it like this:
> 
>  import os
>  def startfile(url):
>    os.system("gnome-open " + url) # quote if you
> can't trust user.
> 
> 
> Hye-Shik
> _______________________________________________
> freebsd-python@freebsd.org mailing list
>
http://lists.freebsd.org/mailman/listinfo/freebsd-python
> To unsubscribe, send any mail to
> "freebsd-python-unsubscribe@freebsd.org"
>  


	
	
		
___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun!  http://uk.messenger.yahoo.com

From owner-freebsd-python@FreeBSD.ORG  Thu Aug 19 11:57:43 2004
Return-Path: <owner-freebsd-python@FreeBSD.ORG>
Delivered-To: freebsd-python@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 35CDC16A4CE
	for <freebsd-python@freebsd.org>;
	Thu, 19 Aug 2004 11:57:43 +0000 (GMT)
Received: from udo.flexis.de (udo.flexis.de [212.9.181.2])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 0EE6E43D60
	for <freebsd-python@freebsd.org>;
	Thu, 19 Aug 2004 11:57:42 +0000 (GMT)	(envelope-from wl@flexis.de)
Received: from [10.0.0.72] (fry.flexis.de [10.0.0.72])
	by udo.flexis.de (8.12.11/8.12.11) with ESMTP id i7JBvRMh009666
	for <freebsd-python@freebsd.org>;
	Thu, 19 Aug 2004 13:57:27 +0200 (CEST)	(envelope-from wl@flexis.de)
Message-ID: <412495A7.90709@flexis.de>
Date: Thu, 19 Aug 2004 13:57:27 +0200
From: Wolfgang Langner <wl@flexis.de>
Organization: flexis AG
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
	rv:1.7) Gecko/20040616
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: freebsd-python@freebsd.org
References: <20040819112009.GA52222@augusta.de>
In-Reply-To: <20040819112009.GA52222@augusta.de>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-flexis-AG-MailScanner-Information: Contact posthamster@flexis.de for more
	information
X-MailScanner: Found to be clean
X-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (Wertung=-4.9,
	benoetigt 4.8, autolearn=not spam, BAYES_00 -4.90)
X-MailScanner-From: wl@flexis.de
Subject: Re: Probelem with freeBSD and Zope
X-BeenThere: freebsd-python@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: FreeBSD-specific Python issues <freebsd-python.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
	<mailto:freebsd-python-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-python>
List-Post: <mailto:freebsd-python@freebsd.org>
List-Help: <mailto:freebsd-python-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
	<mailto:freebsd-python-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Aug 2004 11:57:43 -0000

Hello,

> i´m running a zope server on an FreeBSD machine with 2 Gig physical Ram. 
> when the python process reaches a size of 512M it dies with sig11. anyone
> an Idea what to do about that. 

That's not a Python or Zope limit. It's a FreeBSD limit.

Use command 'limits' to show your settings.
Normally data size is set to 512M, increase this.

In /etc/login.conf are settings for limits,
some limits are set with sysctl and some are compiled into
the kernel.
Use man to get more info, I don't now the exact place yet.


bye bye Wolfgang
-- 
+------------------------------------------------------------------------+
| Dipl.-Ing.(FH) Wolfgang Langner                                        |
|                                                                        |
| flexis AG                              tel:   +49-711-782 380-43       |
| Vaihinger Strasse 122                  fax:   +49-711-782 380-78       |
| D-70567 Stuttgart                      email: langner@flexis.de        |
+------------------------------------------------------------------------+

From owner-freebsd-python@FreeBSD.ORG  Thu Aug 19 16:30:38 2004
Return-Path: <owner-freebsd-python@FreeBSD.ORG>
Delivered-To: freebsd-python@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D92BB16A4CE
	for <freebsd-python@freebsd.org>;
	Thu, 19 Aug 2004 16:30:38 +0000 (GMT)
Received: from diligence.flag.rootnode.com
	(adsl-65-67-81-98.dsl.ltrkar.swbell.net [65.67.81.98])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 81E3043D3F
	for <freebsd-python@freebsd.org>;
	Thu, 19 Aug 2004 16:30:38 +0000 (GMT)	(envelope-from joe@osoft.us)
Received: from [10.0.1.105] (coherence.flag.rootnode.com [10.0.1.105])
	by diligence.flag.rootnode.com (Postfix) with ESMTP
	id 05EA3D4AE; Thu, 19 Aug 2004 11:30:34 -0500 (CDT)
Message-ID: <4124D5FF.3010005@osoft.us>
Date: Thu, 19 Aug 2004 11:31:59 -0500
From: Joe Koberg <joe@osoft.us>
User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Max Russell <max_russell2000@yahoo.co.uk>
References: <20040819095330.14270.qmail@web25404.mail.ukl.yahoo.com>
In-Reply-To: <20040819095330.14270.qmail@web25404.mail.ukl.yahoo.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
cc: freebsd-python@freebsd.org
Subject: Re: startfile() equivalent
X-BeenThere: freebsd-python@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: FreeBSD-specific Python issues <freebsd-python.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
	<mailto:freebsd-python-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-python>
List-Post: <mailto:freebsd-python@freebsd.org>
List-Help: <mailto:freebsd-python-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
	<mailto:freebsd-python-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Aug 2004 16:30:39 -0000

Max Russell wrote:

>Also- I do not launch x-mame from the GUI, I use a
>script (in Perl) to select and choose my game of
>choice. So I suppose what I am looking for is
>something that allows me to use a *nix system command
>from within a Python script.
>
>  
>

http://www.python.org/doc/lib/os-process.html


If you just want to launch a command:
   
    import os
    os.system('unix shell command here')


If you need the stdin/stdout/stderr channels from the process you launched,
to communicate with it over stdio:

    import os
    stdin, stdout, stderr = os.popen3('unix shell command here')
    # now you can do i.e. stdin.write('data going to program')


If you want the new process to replace your python process (exec):

    import os
    os.execvp(programname, (arg1, arg2, arg3, ...))
    # os.execvp doesn't return - so you'll never reach this comment


If you want to start the process and wait around for its return value:
    import os
    returnval = os.spawnvp(os.P_WAIT, programname, (arg1, arg2, ...))


or if you want to start it and get its PID immediately:
    import os
    pid = os.spawnvp(os.P_NOWAIT, programname, (arg1, arg2, ...))



Thanks for using Python and FreeBSD!

Joe Koberg
joe at osoft dot us




From owner-freebsd-python@FreeBSD.ORG  Thu Aug 19 20:45:26 2004
Return-Path: <owner-freebsd-python@FreeBSD.ORG>
Delivered-To: freebsd-python@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 290D416A4CE
	for <freebsd-python@freebsd.org>;
	Thu, 19 Aug 2004 20:45:26 +0000 (GMT)
Received: from a.mx.zettai.net (a.mx.zettai.net [199.232.160.28])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7A44E43D1F
	for <freebsd-python@freebsd.org>;
	Thu, 19 Aug 2004 20:45:25 +0000 (GMT)	(envelope-from list@zettai.net)
Received: (qmail 75830 invoked by uid 1012); 19 Aug 2004 20:45:25 -0000
Received: from list@zettai.net by beta.zettai.net by uid 89 with
	qmail-scanner-1.22 
	(clamdscan: 0.70. spamassassin: 2.63.  Clear:RC:1(200.124.175.192):. 
	Processed in 1.571189 secs); 19 Aug 2004 20:45:25 -0000
Received: from unknown (HELO 200.124.175.192)
	(list@zettai.net@200.124.175.192)
	by 0 with SMTP; 19 Aug 2004 20:45:23 -0000
Date: Thu, 19 Aug 2004 15:45:23 -0500
From: george donnelly <list@zettai.net>
To: Gerhard Schmidt <estartu@augusta.de>
X-Priority: 3
In-Reply-To: <20040819112009.GA52222@augusta.de>
Message-ID: <r02010100-1028-B253E727F22011D895F9000A9599E8D8@[200.124.175.192]>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Mailer: Mailsmith 2.1.1 (Blindsider)
cc: freebsd-python@freebsd.org
Subject: Re: Probelem with freeBSD and Zope
X-BeenThere: freebsd-python@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: FreeBSD-specific Python issues <freebsd-python.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
	<mailto:freebsd-python-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-python>
List-Post: <mailto:freebsd-python@freebsd.org>
List-Help: <mailto:freebsd-python-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
	<mailto:freebsd-python-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Aug 2004 20:45:26 -0000

Gerhard Schmidt <estartu@augusta.de> on 8/19/04 wrote:

>i=C2=B4m running a zope server on an FreeBSD machine with 2 Gig physical
Ram.=20
>when the python process reaches a size of 512M it dies with sig11.=20
>anyone
>an Idea what to do about that.=20

this is a kernel limit.

i got around it like by recompiling the kernel with these lines in the
kernel conf file:

options         MAXDSIZ=3D"(768*1024*1024)"
options         MAXSSIZ=3D"(256*1024*1024)"
options         DFLDSIZ=3D"(768*1024*1024)"

and then these lines in /boot/loader.conf:

kern.maxdsiz=3D"1610612736"
kern.dfldsiz=3D"1610612736"
kerm.maxssiz=3D"1610612736"

then a reboot.

and then putting unlimit in the zope start script (csh shell).

you should of course decide which numbers are best for you

hth
<-->
george donnelly ~ http://www.zettai.net/ ~ "Quality Zope Hosting"
Shared and Dedicated Zope Hosting ~ Zope Servers ~ Zope Websites
Yahoo, AIM: zettainet ~ ICQ: 51907738 ~ Sales (USA): 1-866-967-3669