Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Executable prepared using pp is creating some temporary folders

by bihuboliya (Acolyte)
on Aug 31, 2012 at 09:50 UTC ( [id://990963]=perlquestion: print w/replies, xml ) Need Help??

bihuboliya has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I have prepared an executable using pp -o test.exe test.pl. Now, when I run the executable a folder starting with 'par-' (eg. par-6gr56ety3) is created in the TEMP folder of windows. The folder is not getting deleted after the execution is over. I tried doing - system("rd /s /q $par_folder") while exiting from the script. This give me the error message "access denied". This is so because the executable itself is creating the temporary folder and using it. Is there any other way to get rid of the temporary folder?

Please help. Thanks in advance.

  • Comment on Executable prepared using pp is creating some temporary folders

Replies are listed 'Best First'.
Re: Executable prepared using pp is creating some temporary folders
by marto (Cardinal) on Aug 31, 2012 at 10:04 UTC

    See the -C flag from pp. Your program is currently running from within the temporary directory, so you can't remove it while it's running.

Re: Executable prepared using pp is creating some temporary folders
by Anonymous Monk on Jan 28, 2013 at 12:35 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-23 16:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found