[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-AnyPerl] Perl and Dos?



At 10:36 PM -0400 1999/6/28, bobbys wrote:
>Since this is "AnyPerl", I figured I'd give this a shot:
>
>Is there any way to execute a DOS program and pass arguments to it with
>Perl?  I
>know very little of Perl on the Wintel side of things, and I have to have this
>custom DOS-based executable do its work. I need this program to be
>triggered by
>a Perl script (which does a lot of other work).
>
>Is this out of the realm of possibility?  Yes, the program *has* to be run
>under
>DOS.
>
>Any pointers?  Thanks!

Yes, same way as with Unix.  I believe back-tic's work, but the last time I
did it I used OPEN and piped the command backinto perl.  If I recall (been
a few years) I wrote a wrapper around the NT's ping command, and nbtstat
command.  I think I ripped-off Learning Perl on Win32 from O'Reilly for the
methodology (or activestate may have had something on their web site).

Kevin

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-anyperl-request@macperl.org