I can't think of a way to do what you'd like off the top of my head, but you may be able to write an expect script. A quick search yeilded a nice little article about expect.
http://www2.linuxjournal.com/article/3065 On 1/18/07, ukhas jean <[EMAIL PROTECTED]> wrote: > Hello Bill et al, > > The arguments are as many as 20 to 25 ... a typo here or there could create > havoc ... get.sh is a widely used script ... it takes of many things in the > workflow here but ... the parameter no. is huge ... but the sad part is the > workflow still requires these parameters !!! > > is there no way we can pass a value from perl to a shell-script??? > > Best, > Ukh > > Bill Luebkert <[EMAIL PROTECTED]> wrote: > ukhas jean wrote: > > Morning All, > > > > I have been beating round the bush for some time ... just thought tht > > asking the experienced people would help. Hence Posting this mail. > > > > I have a perl script called *"a.pl"* on a unix machine and i also have a > > shell script called *"get.sh" *on the same machine. Now *"get.sh"* > > prompts the user to answer many questions ... so i wanted to create a > > perlscript *"a.pl*" that would enter fixed-values for these questions. > > i.e. *"a.pl"* would be a wrapper script of "*get.sh".* > > ** > > My question:- How do i pass these fixed-values from "*a.pl" *to > > *"get.sh"*??? > > If you can modify get.sh to check for ARGV parameters, you could > also just pass the args in on the commandline and bypass all the > hard stuff. > > system "/some/path/get.sh arg1 arg2 arg3 arg4"; > > > > ________________________________ > TV dinner still cooling? > Check out "Tonight's Picks" on Yahoo! TV. > > > _______________________________________________ > ActivePerl mailing list > [email protected] > To unsubscribe: > http://listserv.ActiveState.com/mailman/mysubs > > _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
