http://qs321.pair.com?node_id=291909


in reply to Re: Re: Re: Deleting a running script
in thread Deleting a running script

The program is 'farmed' out and runs in the background without a gui or anything in order to not disturb or alert the user. (It's not a hacker tool. More of a config checker) Not alerting the user is a big ticket for this thing so, no pop-up windows or rebooting can be done. :( Once it's done, I dont want it floating around on the computers so, it needs to delete itself. I have the "Farmer" program going back around and removing it now but, I wanted a more elegant solution instead of constantly checking if the tool has finished.. blah blah. I tried the batch file method and back tic'd it to the shell but, always got a 'permission denied' due to the process locking the file. Thanks
  • Comment on Re: Re: Re: Re: Deleting a running script

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Deleting a running script
by Limbic~Region (Chancellor) on Sep 16, 2003 at 18:23 UTC
    Bagarre,
    I think you forgot to login. The `batch.bat` method won't work. You have to exec. I verified that it works.

    Cheers - L~R

      Forgot to login?? exec kind of works but, plays havoc with the parent process. It causes it to exit abnormaly and leaves a slew of .dll files in the temp directory. (Perl2exe expands required modules as dll's) Which is just as bad for me. This is gonna drive me crazy! There has to be an elegant solution to this. Thanks anyway guys and gals.