develooper Front page | perl.perl5.porters | Postings from September 2003

setting $0

Thread Next
From:
Torsten Foertsch
Date:
September 9, 2003 11:15
Subject:
setting $0
Message ID:
200309092013.32669.torsten.foertsch@gmx.net
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

is there a way to set the string that is print by "ps" or "top" in a 
sun/solaris/perl5.005_03 environment?

Simply setting $0 didn't work.

The problem is, I have a process forked multiple times and I want to identify 
the children by their command line. Is that possible in that environment?

Thanks,
Torsten
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE/XhhMwicyCTir8T4RAteDAJ9tU0ftMNyOFCeSfdu4SAmTJsYsMQCaA9aP
m1pw2FqGIe5n7mvALXs4EjM=
=AB1o
-----END PGP SIGNATURE-----

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About