Re: Launch windows exe from perl
- From: John Bokma <john@xxxxxxxxxxxxxxx>
- Date: 6 Jul 2005 19:37:02 GMT
"Paul Lalli" <mritty@xxxxxxxxx> wrote:
> jl_post@xxxxxxxxxxx wrote:
>> > Troot wrote:
>> > > ps Do you know if there is a way to get Perl to wait until the
>> > > opened app is finished? Its cool if its too difficult to do.
>>
>> Paul Lalli replied:
>> > That is, in fact, the default behavior of system. If you wanted
>> > it to not wait, you'd have to do some magic involving fork()...
>>
>>
>> If you're using Win32, there's no need to use fork(). You can just
>> use the "start" command inside the call to system(), like this:
>>
>> system("start notepad.exe");
>>
>> This will start the "notepad.exe" application without halting the Perl
>> script.
>
> Huh, good to know. I rarely program in Windows, so I'd never
> encountered that. Thanks for the tip.
Another one, if you want to open the current directory in a cmd.exe use:
start .
--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
Happy Customers: http://castleamber.com/testimonials.html
.
- References:
- Launch windows exe from perl
- From: Troot
- Re: Launch windows exe from perl
- From: Paul Lalli
- Re: Launch windows exe from perl
- From: jl_post@xxxxxxxxxxx
- Re: Launch windows exe from perl
- From: Paul Lalli
- Launch windows exe from perl
- Prev by Date: Perl Multithreading and use of Perl Modules
- Next by Date: Returning specific data from a webpage?
- Previous by thread: Re: Launch windows exe from perl
- Next by thread: Perl Multithreading and use of Perl Modules
- Index(es):
Relevant Pages
|