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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dos box popping up problem .... 1

Status
Not open for further replies.

rab54

Programmer
Jan 28, 2004
112
GB
Gurus -

I have a script that polls a db every minute on the server - is there a way to stop the dos box 'popping up' every time it runs ?

cheers

Rab
 
There's an executable named perlw.exe which is used by Perl/TK scripts that don't want a DOS window. Apart from last of DOS window it's the standard Perl interpreter as far as I'm aware. Try using that instead.

Mike

"Deliver me from the bane of civilised life; teddy bear envy."

Want to get great answers to your Tek-Tips questions? Have a look at faq219-2884

 
Cheers Mike -

On windows (with Activestate perl) it is wperl.exe -

Works like a dream

cheers

Rab
 
Aha - wrong way around, I should have checked first. Glad you're sorted though.

Mike

"Deliver me from the bane of civilised life; teddy bear envy."

Want to get great answers to your Tek-Tips questions? Have a look at faq219-2884

 
Try it at the beginning of your script:


BEGIN {
if ($^O eq 'MSWin32') {
require Win32::Console;
Win32::Console::Free( );
}
}

Have a great day!
 
Neat - the console appears, very briefly, and then goes away.

Mike

"Deliver me from the bane of civilised life; teddy bear envy."

Want to get great answers to your Tek-Tips questions? Have a look at faq219-2884

 
Alternatively, you could compile your script with pp (which is part of the PAR package. If you pass the -g flag to pp, it will suppress the console window on Win32 systems.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top