how can i automate this?

S

Someone

there's a korn shell script that i would like to wrap a perl script
around to automate it, as a task i need to do always chooses the same
options from this script (it's menu driven). can i somehow redirect
my perl scripts stdout to print to this scripts stdin? does that make
sense? thanks.

sean rowe
 
J

Jürgen Exner

Someone said:
there's a korn shell script that i would like to wrap a perl script
around to automate it, as a task i need to do always chooses the same
options from this script (it's menu driven). can i somehow redirect
my perl scripts stdout to print to this scripts stdin? does that make
sense? thanks.

Please see "perldoc -f open" and the there check out the "|--" mode.
However, you may be better of using the Expect module.

jue
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top