Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Parent process name

by Abigail-II (Bishop)
on May 28, 2004 at 13:43 UTC ( [id://357226]=note: print w/replies, xml ) Need Help??


in reply to Parent process name

On Linux and other Unix systems with a similar /proc filesystem:
my ($name) = `cat /proc/@{[getppid]}/cmdline` =~ /^(\S+)/
(This assumes you don't have sneaky program names with spaces in them).

Abigail

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://357226]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-19 09:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found