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

Replies are listed 'Best First'.
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?