Reputation: 3416
How can I run a program on the command line and pass it input (after it runs) using perl? The goal is to run it on a cron script and design it so that it can't interrupt the user
For example, I'm looking to do this:
<run command>
Input required (program prompt): <injected by perl>
<end>
Upvotes: 1
Views: 353