CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
HEADS UP ladies and gentlemen!


Peter Van Hoecke

May 15, 2000, 2:35 AM

Post #1 of 2 (1063 views)
HEADS UP ladies and gentlemen! Can't Post

I have got a serious problem here, and time is against me (big time!).

I wrote a script for Win32 that launches several other tasks, including some none-Perl. When I start it manually, it works fine, but when I schedule it with the NT "at" statement, it goes wrong. The tricky part about the "at" statement is that you have to say to him to start a cmd-window to run the scripts, and because my script has to be fully automated I have to close the cmd window too (cfr /c ). For the rest is the at statement quit simple

at 13:00 cmd /c c:\perl\bin\perl.exe c:\scripts\

I suspect that by closing this window somehow my new processes are killed too! Even if I state in my script that the programs have to be detached processes. I use this command:

Win32::Process::Create($process, $path2executable, $executable, 0, DETACHED_PROCESS, "." );

I there a way to create processes that don’t get killed if the calling process is terminated (include his command window?) Should I use CREATE_NEW_CONSOLE or what?!?

I need the answer badly, and I need it fast. Become my friend for life and help me out here!

PS: I posted my question here (intermediate forum) because I hope that you guys have had experiences with this sort of problem…

Peter Van Hoecke

May 16, 2000, 6:20 AM

Post #2 of 2 (1063 views)
Re: HEADS UP ladies and gentlemen! [In reply to] Can't Post

I have found the answer, but I'm still investigation the bug. Will post my report in the Win32 forum in a few days...



Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives