Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Have a perl script launch another script or program, then write to that script's STDIN

by xtpu (Novice)
on Jan 06, 2014 at 07:32 UTC ( #1069467=note: print w/ replies, xml ) Need Help??


in reply to Re: Have a perl script launch another script or program, then write to that script's STDIN
in thread Have a perl script launch another script or program, then write to that script's STDIN

The situation is this: I have several daemons that need to access some encrypted data to perform different operations on it. For security purposes, I want to enter the decryption password when I start the daemons, using:

system('stty','-echo'); my $input=<STDIN>; system('stty','echo'); chomp($input);

To make life easier for myself, I want to have one script that will start all the daemons so that I only have to enter the password once, after which this script will launch all the other daemons and provide them with the password. However, I don't know how to have the script give the daemons the password.

Does my question make more sense now?


Comment on Re^2: Have a perl script launch another script or program, then write to that script's STDIN
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2014-08-01 03:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (256 votes), past polls