Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by Anonymous Monk
on Jan 06, 2014 at 11:22 UTC ( #1069484=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

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1069484]
help
Chatterbox?
[Corion]: Hurr - those people from that shady VPN / proxy backdoor site are persistent - today is the third time they've mailed me about backdooring my software with their "SDK".
[Corion]: I guess I should blacklist them on my mailserver directly.

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2018-05-21 14:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?