Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to start invisible perl process?

Status
Not open for further replies.

JD9955

Programmer
Apr 16, 2007
15
US
hi all,

I am wondering how I can start a perl process which doesn’t show a general cmd screen..

Eg, at the moment I have a perl program that doesn’t write output to a screen (only a file). This program forever loops and writes to a file. Now, I have a batch file which contains the following (to kick off my perl program):

Perl perProg.pl

However, when I run the batch program to kick off the perl program, a cmd window is displayed,, how can I start my perl program and not display this cmd screen..?


Cheers, and thanks all :)

JD
(the perl aussie battler)
 
If you're using Activestate perl on Windows, run the script with wperl.exe which is in the perl/bin directory. If you're not using Activestate, there are other ways to do it, just Google it
 
ok thanks ,, got it.

i used wperl for the main console, and then the following code for the child processes:



BEGIN {
Win32::SetChildShowWindow(0)
if defined &Win32::SetChildShowWindow
};




thanks :)

JD
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top