partikmonu:
I'd first check out a few things:
- Does the root.sh script do very much? If it doesn't, you could just do the steps in your perl script and ignore the root.sh script.
- Is the root.sh script under your control? If so, you could just edit *that* script to not require a keypress.
- Perhaps the root.sh script can do the install automatically if there's an environment variable or command line setting for it.
- Perhaps the root.sh script is executing a different program that requires the keyboard entry. If so, *that* program may have an option that you could use.
...roboticus
When your only tool is a hammer, all problems look like your thumb.