Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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 ( #1045872=note: print w/ replies, xml ) Need Help??


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

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.


Comment on Re^2: Is there a way with IPC::Run to hide command options from process table?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2015-07-04 15:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls