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

Starting perl in a hidden shell? 1

Status
Not open for further replies.

Tve

Programmer
May 22, 2000
166
FR
Hi all,

I am working with perl on NT 4.0

I have following problem: I need to run a perl script on user stations to do some clean-up of files.

I've got a trigger to start the script, but I would like to start perl in a hidden shell. I do not want to run this script within my batch file (user would have to wait until this process is finished), so I am thinking of starting a child process.

To prevent a user closing the windows shell (and thus breaking the script), I would like this to run in a hidden windows command box.

Is this possible?

AD AUGUSTA PER ANGUSTA

Thierry
 
I think wperl is what you want. If you are using ActiveState Perl you should already have a "wperl.exe" file in the same directory as perl.exe. Using "wperl.exe" gives you perl without the annoying command window.

To use wperl.exe you can do one of the following things.

1) Call script with wperl.exe
C:\perl\bin\wperl myscript.pl

2) Make a new file type for wperl scripts
Create file extension type wpl to use C:\perl\bin\wperl
Rename script to use extension wpl
 
Ok, neat.... Where did you find that? I can't find a reference to it in the docs yet. Mike
"Experience is the comb that Nature gives us after we are bald."

Is that a haiku?
I never could get the hang
of writing those things.
 
Raider,

Very impressive......

Same comments as Mike though:

Where the ... did you find this!?!?


Anyway, thanks for the tip. I'm going to check it out. AD AUGUSTA PER ANGUSTA

Thierry
 
I accidently ran into this information when working with Perl/Tk. I was looking for a way to eliminate the command window when running a Perl/Tk program. Search for 'wperl' at for more information.
 
Ok, impressive - loads of references there. Mike
"Experience is the comb that Nature gives us after we are bald."

Is that a haiku?
I never could get the hang
of writing those things.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top