Date: Tue, 8 Jul 2003 17:14:39 +0200 From: Simon Barner <barner@in.tum.de> To: Rob <listone@deathbeforedecaf.net> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Can I Set Process Name? Message-ID: <20030708151439.GD901@zi025.glhnet.mhn.de> In-Reply-To: <000a01c34561$228ff5b0$a4b826cb@goo> References: <003001c3455e$b6c322f0$6e2a6ba5@lc.ca.gov> <000a01c34561$228ff5b0$a4b826cb@goo>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030708151439.GD901>