http://www.perlmonks.org?node_id=1069484


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