Skip to main content.
home | support | download

Back to List Archive

Re: Running programs on Windows

From: Anthony Baratta <anthony(at)not-real.2plus2partners.com>
Date: Mon Sep 27 2004 - 23:50:05 GMT
At 03:47 PM 9/27/2004, Bill Moseley wrote:
>On Mon, Sep 27, 2004 at 03:34:07PM -0700, Anthony Baratta wrote:
> > At 12:36 PM 9/27/2004, Bill Moseley wrote:
> > >Following our discussions last week... can I get a few Windows users
> > >to help test something?
> >
> > I had to make one tweak to get it to work:
> >
> > my @command = ( 'perl', 'my test.pl', 'first arg1', '"second arg2"' );
> >
> > I had to drop the "my " in front of test.pl. ActiveState Perl didn't like
> > it.
>
>Oh, but that was part of the test.  How does active state not like it?
>Does it work if you use double quotes?
>
>    my @command = ( 'perl', '"my test.pl"', 'first arg1', '"second arg2"' );
>
>You did name the test program "my test.pl", right?

OK - I'm being stupid. You wanted the name to be my test.pl *with my and 
the space*. Sorry about that - here's the output of that:

C:\Program Files\SWISH-E\indexes\Tmp>bill_test_1.pl
Name "main::w" used only once: possible typo at C:\Program 
Files\SWISH-E\indexes
\Tmp\bill_test_1.pl line 11.
Bad file descriptor at C:\Program Files\SWISH-E\indexes\Tmp\bill_test_1.pl line
18, <r> line 3.
Pid = 4784
output:
4784 [first arg1]
4784 [second arg2]
4784 done
done
Received on Mon Sep 27 16:50:15 2004