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

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

by Laurent_R (Parson)
on Jan 06, 2014 at 07:13 UTC ( #1069466=note: print w/ replies, xml ) Need Help??


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

Hmm, your question is to vague IMHO. Could you please be more specific or show the code that you already have and explain in which respect it does not fit your needs.


Comment on Re: Have a perl script launch another script or program, then write to that script's STDIN
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

    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?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (13)
As of 2014-09-16 17:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (40 votes), past polls