Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Executable prepared using pp is creating some temporary folders

by bihuboliya (Acolyte)
on Aug 31, 2012 at 09:50 UTC ( #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
Re: Executable prepared using pp is creating some temporary folders
by marto (Chancellor) 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
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? | Other CB clients
Other Users?
Others examining the Monastery: (14)
As of 2014-07-31 12:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (248 votes), past polls