Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: $0 inconsistency?

by mr_mischief (Monsignor)
on Apr 13, 2022 at 18:34 UTC ( [id://11142966]=note: print w/replies, xml ) Need Help??


in reply to Re^2: $0 inconsistency?
in thread $0 inconsistency?

Eh... not quite. Setting argv[0] in the process should work on most POSIX systems. That change is an additional thing it does for Linux, and notes the limit for that.

This is on a Mac.:

$ perl -e '$0="my really awesome process name"; sleep 60;' & [1] 73413 $ ps PID TTY TIME CMD 70164 ttys002 0:00.05 /opt/local/bin/bash 677 ttys004 0:05.06 /opt/local/bin/bash 73413 ttys004 0:00.03 my really awesome process name

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-04-23 14:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found