Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

(tye)Re: Creating an independent process in Win32

by tye (Sage)
on May 08, 2001 at 07:40 UTC ( [id://78759]=note: print w/replies, xml ) Need Help??


in reply to Creating an independent process in Win32

I'd go with one of these much simpler methods:

system(1,"iexplore $outputFile"); # or system("start iexplorer $outputFile");
I suspect the first one will have the same problem but that the second one won't, but I'd be curious if I'm right. (:

        - tye (but my friends call me "Tye")

Replies are listed 'Best First'.
Re: (tye)Re: Creating an independent process in Win32
by Hot Pastrami (Monk) on May 08, 2001 at 19:10 UTC
    I determined the problem yesterday. The script was being launched from an application directly, and it was that application that wouldn't let the script stop executing until the browser window had been closed. When I disable the application's "Capture Output" option, it works fine.

    The first way you poined out results in a "Bad Command or Filename" on my system, but your second suggestion works just as well as the one I'm using now, so I'll switch to it.

    Thanks, eh!

    Hot Pastrami

      The first way you poined out results in a "Bad Command or Filename" on my system

      Yeah, that is because I typoed "iexplorer", leaving off the final "r".

              - tye (but my friends call me "Tye")
        I had noticed that when I tried it, and corrected the typo, but it was still the same. I'm pretty sure the problem is because IEXPLORE isn't really in the system path... you can go to Start > Run and type IEXPLORE and it will work, but from the DOS Console you have to specify IEXPLORE's directory. Pretty funky.

        Hot Pastrami
A big help with Win32 process
by Pedro Picasso (Sexton) on Jun 13, 2001 at 01:51 UTC
    I had a similar problem launching a batch file on NT from a cgi program. This seems like something people would do somewhat often, but it was very hard to find support. Your method system("start iexplorer $outputFile"); works great where the normal system call stinks.

    Where did you learn that "start somesuchfile.exe" kicks off a windows program like that? I love this site, but there should be more easily searched support for Win32 eccentricities.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://78759]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-20 03:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found