Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Is there a way with IPC::Run to hide command options from process table?

by Anonymous Monk
on Jul 23, 2013 at 13:23 UTC ( [id://1045859]=note: print w/replies, xml ) Need Help??


in reply to Is there a way with IPC::Run to hide command options from process table?

no, $0 has nothing to do with hiding command options, you can't hide those

Replies are listed 'Best First'.
Re^2: Is there a way with IPC::Run to hide command options from process table?
by DeadPoet (Scribe) on Jul 23, 2013 at 13:59 UTC

    Not to derail the question at hand, but the following does hide the script options:

    #!/usr/bin/perl -lw $0 = q{test.pl}; qx(sleep $ARGV[0]); exit 0;

    Without $0 set:

    user 30221 27990 0 08:36 pts/51 00:00:00 /usr/bin/perl -lw ./test.p +l 10

    With $0 set:

    user 30385 27990 0 08:36 pts/51 00:00:00 test.pl

    The question remains as to how something similar can be accomplished via IPC::Run.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-03-19 11:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found