[thelist] Call exe program on win32 using perl

Michael Percy mpercy at portera.com
Thu Jul 27 15:49:35 CDT 2000


I prefer to do:

`someprogram.exe arg1 arg2`; or
`someprogram.exe $arg1 $arg2`; or
$output = `someprogram.exe $arg1 $arg2`;

etc...


Mike

> -----Original Message-----
> From: Erik M. Sabowski [mailto:sabowski at wam.umd.edu]
> Sent: Thursday, July 27, 2000 11:04 AM
> To: thelist
> Subject: Re: [thelist] Call exe program on win32 using perl
> 
> 
> Well, i have done hardly any win32 perl programming, so i 
> can't be sure
> that this will work on win32. but it's worth a shot.
> 
> use the system command. the first argument you pass it is the 
> name of the
> program, and the following arguments are the arguments to the 
> program. so:
> 
> system "program.exe","arg1","arg2";
> 
> HTHB
> 
> Erik M. Sabowski
> sabowski at wam.umd.edu
> www.wam.umd.edu/~sabowski/
> 
> On Thu, 27 Jul 2000, Christopher Ditty wrote:
> 
> > 
> >      I have been given the task of writing a program for 
> one of our groups.
> >       They want to be able to call an external exe program 
> from a perl
> >      script and pass some command line parameters(sp).
> > 
> >      Can someone give me an example of how this would be 
> accomplished?  I
> >      tried looking through my book, but not knowing what to 
> look for, I
> >      wasn't very productive.
> > 
> >      Any help is appreciated.
> > 
> >      thanks
> > 
> >      CDitty
> > 
> 
> 
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt ! 
> 




More information about the thelist mailing list