I don't think you could be vaguer :)
Very basic

#!/usr/bin/perl
# update.pl multiple options command line
my @packages = @ARGV
foreach (@packages){
        system(packageexecutableforupdate);     
        #with output captured
        My $output = `packageexecutableforupdate`;
}

Not tested of course. More info may lend yourself to a better answer.

Paul

 Paul Kraus
 -----------------------
 PEL Supply Company
 Network Administrator
> -----Original Message-----
> From: Jeff Collins [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 31, 2003 11:44 AM
> To: [EMAIL PROTECTED]
> Subject: Perl Newbie question: How would you take keyboard input and run a
> shell scrip with that input?
> 
> For example: I would like for the user to enter the
> name of a software package to use and then call a
> shell script to use that package name to upgrade
> software.
> 
> Thanks
> 
> =====
> Jeffrey T. Collins
> [EMAIL PROTECTED]
> 
> __________________________________
> Do you Yahoo!?
> Find out what made the Top Yahoo! Searches of 2003
> http://search.yahoo.com/top2003
> 
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://learn.perl.org/> <http://learn.perl.org/first-response>



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to