From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 12 19:11:02 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CC85C16A41F for ; Thu, 12 Jul 2007 19:11:02 +0000 (UTC) (envelope-from mathieu.prevot@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.188]) by mx1.freebsd.org (Postfix) with ESMTP id 5FB5913C43E for ; Thu, 12 Jul 2007 19:11:02 +0000 (UTC) (envelope-from mathieu.prevot@gmail.com) Received: by mu-out-0910.google.com with SMTP id w9so271914mue for ; Thu, 12 Jul 2007 12:11:02 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FINs2R3Z2IWLrU0EZgkyhbmbi8qBjo6V+N1uSDUpJ4HppZTzHLDKa3XpRWmvJvqLBph0ehVw0YsStmTXFgonNU6VnOlMIEh91vNP4n3wKHHu/QohmRvOaoWyziD/CO4ZXlYPvCwtw0tfY+ZA8S/NO1CeJ1so2Ns8UlGcLzDEnyM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aamXCJd4QiaF+UxvU8GG1lvnUIwRVPQCGjdZbtV2mzTAtAeaIxQieTtAKFQHf5a7nx9sWUcUv4AYJzYQ0j36l2JKmkHd/AuwmrC/QsvvRxx/m1s5DJgHpI5HGf2Ni3H8IZCT08HlRZ6Ixt+8PGaZuB5lVYHxJwCT+DWr04+vrP0= Received: by 10.82.156.12 with SMTP id d12mr964027bue.1184265810810; Thu, 12 Jul 2007 11:43:30 -0700 (PDT) Received: by 10.82.117.14 with HTTP; Thu, 12 Jul 2007 11:43:30 -0700 (PDT) Message-ID: <3e473cc60707121143n30c5069bse6cf533726c9663e@mail.gmail.com> Date: Thu, 12 Jul 2007 20:43:30 +0200 From: "Mathieu Prevot" To: "Joseph Koshy" , freebsd-hackers@freebsd.org, "FreeBSD SoC admins" In-Reply-To: <3e473cc60707121141x20e7088cv13ff409d71e310dd@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3e473cc60707121141x20e7088cv13ff409d71e310dd@mail.gmail.com> Cc: Subject: Re: get active processes in python X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jul 2007 19:11:02 -0000 2007/7/12, Mathieu Prevot : > Hello, > do you recommend a method to get active processes in a python script, > as with "ps" or "top" in order to put the result into a list ? (python > package, shell call...) > Mathieu PS: I would like to fire this regularly, eg every second