in reply to Hiding/masking your username or password
You can change how your process appears in ps output by assigning to $0, like so:
Run this and you will have 10 minutes to look at ps and see that the process appears as renamed, not as whatever you saved the program as.#!/usr/bin/perl use strict; use warnings; $0 = 'renamed'; sleep 600;
If you meant that your Perl code is calling other ftp/database scripts and passing username/password on the command line, then it's those other scripts that would need to do this (or something similar) to mask their command lines. The only way you'd be able to hide that information from the caller's side would be for your Perl to invoke them in interactive mode and use something like Expect to log in as if it were a human user running the (other) script.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Hiding/masking your username or password
by afoken (Chancellor) on Nov 28, 2009 at 23:33 UTC | |
by rowdog (Curate) on Nov 29, 2009 at 15:00 UTC | |
by afoken (Chancellor) on Nov 30, 2009 at 16:51 UTC |