DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: IDEA: Proxy launcher which closes app when its "done"  (Read 7,742 times)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
IDEA: Proxy launcher which closes app when its "done"
« on: November 02, 2005, 11:21 AM »
this request was inspired by a post from turtlleboy here: http://www.donationcoder.com/forum/index.php?topic=1394.0

Quote
..a program that could sense when a program has completed it's function (or goes idle) and then closes that program..

i think a commandline program that can launch another program (with normal args), but be given some instructions about when to shut down that program.

you might want to use it to launch a program and kill it after x minutes, or kill it if it uses too much cpu, or as turtleboy suggested, close it after some period of 'inactivity'.

so im thinking somthing like

Code
RunAndClose.exe 'notepad.exe myfile.txt' -closeafter 10minutes -closeafterinactivefor 2minutes

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • Participated in NANY Challenge Twice
    • Coding Snacks
Re: IDEA: Proxy launcher which closes app when its "done"
« Reply #1 on: November 02, 2005, 12:06 PM »
:) My ProcessGuard can sort of do this, but maybe it's overkill?

Skrommel
« Last Edit: November 02, 2005, 01:12 PM by skrommel »

Original address: https://www.donationcoder.com/forum/index.php?topic=1397.0