David Totten <> wrote:

[ reordered ]

> 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";
>
> 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
> 

Perfectly good advice. However, if you need/have to use Perl then it
might be worth looking at the Expect module.

See http://search.cpan.org/search?query=Expect&mode=all

HTH

-- 
Brian Raven 

_________________________________________

The information contained in this e-mail is confidential and solely 
for the intended addressee(s). Unauthorised reproduction, disclosure, 
modification, and/or distribution of this email may be unlawful. If you 
have received this email in error, please notify the sender immediately 
and delete it from your system. The views expressed in this message 
do not necessarily reflect those of Atos Euronext Market Solutions.
_________________________________________



=================================
Atos Euronext Market Solutions Disclaimer
=================================
The information contained in this e-mail is confidential and solely for the 
intended addressee(s). Unauthorised reproduction, disclosure, modification, 
and/or distribution of this email may be unlawful.
If you have received this email in error, please notify the sender immediately 
and delete it from your system. The views expressed in this message do not 
necessarily reflect those of Atos Euronext Market Solutions.

L'information contenue dans cet e-mail est confidentielle et uniquement 
destinee a la (aux) personnes a laquelle (auxquelle(s)) elle est adressee. 
Toute copie, publication ou diffusion de cet email est interdite. Si cet e-mail 
vous parvient par erreur, nous vous prions de bien vouloir prevenir 
l'expediteur immediatement et d'effacer le e-mail et annexes jointes de votre 
systeme. Le contenu de ce message electronique ne represente pas necessairement 
la position ou le point de vue d'Atos Euronext Market Solutions.

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to