Try this:

        system( "start evince /path/to/pdf.pdf" );

Both cheap and nasty.

-----Original Message-----
From: Daniel Kasak [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 06, 2006 5:37 PM
To: beginners@perl.org
Subject: Windows: Fork and run a process in the background

Greetings.

I'd like to trigger an application to open ( Acrobat Reader ), and *not*
freeze my perl app while it's open.
Under Linux, I do:

system ( "evince /path/to/pdf.pdf &" );

The ampersand does what I need. This doesn't work under Windows. Is
there a cheap & nasty workaround?

-- 
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to