Pergunta

I want an app or python package that can

1.Dynamically add python script to the background

2.Execute a specified time

3.Check is this python script is running,

4.Also i can kill the current execute script.

Is already has such package,so i needn't care about cron, at, check processing is running etc.

Cron only can provide execute job periodically,AT provide execute job once at future. They didn't supply well wrapped python package, although there's a python-crontab, but it wasn't work

What I want is a process control management, like start,monitor process current status, I found the supervisor is exactly what I want, also it provide a web gui & xmlprc for intergate it into my app.

I think supervisor is a better choice,and it's provide a high level API, I hope i have explain why I don't use Cron & AT clearly

Foi útil?

Solução

Take a look at http://supervisord.org/.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top