From owner-freebsd-questions@FreeBSD.ORG Tue Jul 8 08:14:43 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F1E137B401 for ; Tue, 8 Jul 2003 08:14:43 -0700 (PDT) Received: from mailout.informatik.tu-muenchen.de (mailout.informatik.tu-muenchen.de [131.159.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FE7343FBF for ; Tue, 8 Jul 2003 08:14:42 -0700 (PDT) (envelope-from barner@in.tum.de) Received: by zi025.glhnet.mhn.de (Postfix, from userid 1000) id 44AF9384B5; Tue, 8 Jul 2003 17:14:40 +0200 (CEST) Date: Tue, 8 Jul 2003 17:14:39 +0200 From: Simon Barner To: Rob Message-ID: <20030708151439.GD901@zi025.glhnet.mhn.de> References: <003001c3455e$b6c322f0$6e2a6ba5@lc.ca.gov> <000a01c34561$228ff5b0$a4b826cb@goo> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J/dobhs11T7y2rNN" Content-Disposition: inline In-Reply-To: <000a01c34561$228ff5b0$a4b826cb@goo> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at informatik.tu-muenchen.de cc: FreeBSD Questions Subject: Re: Can I Set Process Name? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2003 15:14:43 -0000 --J/dobhs11T7y2rNN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > setproctitle(3) - but I don't know how you would call it from perl. You can do it by altering the $0 variable: #!/usr/bin/perl -w use strict; $0=3D'Will it work?'; sleep (10); A ps | grep 'Will' gives me: 2551 p3 SN 0:00.02 Will it work? (perl) =20 Regards, Simon --J/dobhs11T7y2rNN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/Ct/fCkn+/eutqCoRAowmAJ9/zQ/y6xjIEvx2OFVcDOtVOiyxugCgrLqk 8VpK2uUk2Qmd2JSmenjis6s= =dUdh -----END PGP SIGNATURE----- --J/dobhs11T7y2rNN--