Talk:Pow exec

From PlainOldWebserver

Jump to: navigation, search

I think this is correct:

Its running directory is the OS root ("~/" or "$HOME" in Unix).


I run a webcam with POW, and everything works, but...

I use a program called webcam, which writes a jpg image into my htdocs folder, every 3 seconds. So far so good.

The Problem is, i have to start this Program manually, because when i exec it in startup.sjs, it will not be killed at shutdown of POW.

My Idea would be to have an alternative to exec (e.g. run), which also starts a script, but kills it when POW shuts down.


You can listen for the browser unload, and exec the kill when it happens.

nsIProcess is not hard to use. See http://www.xulplanet.com/references/xpcomref/ifaces/nsIProcess.html for PID and kill details.

Personal tools
Navigation