in reply to Deleting a running script
It really is not a perl question, but it is possible. On unix you may unlink the running program's file (on most versions of unix at least) and the file will be deleted (it still really exists until the proccess ends. I do not think you can do it the same way on windows platforms -- you may have to release control (exec) to another program that removes the exe that you were running. for windows that may mean execing cmd with the delete command in the exec string. one problem here is that if your exec fails for some reason you have no chance to recover...
-Waswas
-Waswas
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Deleting a running script
by Bagarre (Sexton) on Sep 16, 2003 at 16:24 UTC | |
by Limbic~Region (Chancellor) on Sep 16, 2003 at 16:45 UTC | |
by bart (Canon) on Sep 16, 2003 at 17:13 UTC | |
by tachyon (Chancellor) on Sep 16, 2003 at 17:19 UTC | |
by Anonymous Monk on Sep 16, 2003 at 18:07 UTC | |
by Limbic~Region (Chancellor) on Sep 16, 2003 at 18:23 UTC | |
by Anonymous Monk on Sep 16, 2003 at 19:40 UTC | |
by phydeauxarff (Priest) on Sep 16, 2003 at 16:41 UTC |
In Section
Seekers of Perl Wisdom