Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1045872]
help
Chatterbox?
[pryrt]: 1nickt, sprintf "%.16e", $v will always give enough precision to see 1 ULP (the smallest fractional part) of a standard 64bit Perl NV*
[pryrt]: (*: for systems where $Config{nvsize}==8 )
[pryrt]: Thus, that's "enough precision" to tell the difference between 1.0 and 1.0+1ULP

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (15)
As of 2017-05-24 19:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?