in reply to Have a perl script launch another script or program, then write to that script's STDIN
If all you want is to give those daemons the password, you could write something like:
$pass = ******; open($hndl,"|perl daemon1.pl"); open($hnd2,"|perl daemon2.pl"); print $hndl $pass; print $hnd2 $pass;
|
---|
In Section
Seekers of Perl Wisdom