Hello All, I have a very basic question. I need to launch a Bourne shell script using PERL and automate the responses required by the script. I have shown the sample shell script below:
#!/bin/sh echo "Welcome to my script" echo "Do you want to continue" read ans if [ $ans = "n" ] then exit 0 fi echo "I am done. Shall I close?" read ans if [ $ans = "y" ] then exit 0 fi For instance, our example script above needs two values during run-time. I need perl to launch this script and supply those arguments during run-time. Is there a straight-forward mechanism to do this. Please excuse me if this is a too basic question. Any help would be appreciated. Rajesh