----- Original Message -----
From: "Rob Dixon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 28, 2003 09:25
Subject: system command won't pass parameters to batch file
> Hi.
>
> I'm running Windows-98 SE.
>
> I'm having a problem ActivePerl build v5.6.1 build 635 whereby a call like
>
> system ('batchfile.bat param')
>
> is failing to pass the 'param' to the batch file. This hasn't caused a
problem
> in itself, but a lot of the CPAN installations include commands like
>
> perl.exe -e "system qq[pl2bat.bat ].shift" param
>
> which is successfully executing the pl2bat.bat file, but passing an
> empty parameter list. At this point the installation hangs, because
> in the absence of a parameter the batch file waits for input from
> STDIN. I wonder if anybody has seen anything like this?
>
> I have PERL5SHELL set to 'command.com /c' as normal, but I have had
> to use the basic installation of ActivePerl, as I have had errors trying
to
> install using the msi version. Because of this the .pl filetype isn't set
up
> to be opened by perl.exe as it should be. There's a slim chance that this
> is related to the above problem. (And if anybody can tell me exactly
> what the file association text should be I'd be extremely grateful.)
>
> All suggestions more than welcome.
>
> Thanks,
>
> Rob
Rob,
Change your call to this:
system ('batchfile.bat','param')
The behavior of the arguments passed to the system function changed a while
back.
Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters
USA Central Time Zone
636-922-9158 ext. 8652 fax 636-447-4471
[EMAIL PROTECTED]
www.nisc.cc
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs