Possible Duplicate:
Check for process already running in webfaction?

How can I check if a process is already being run using Python + Django on WebFaction hosting?

For example, my process name is myfile.py

marked as duplicate by Caleb, Michael Mrozek Jul 25 '11 at 14:00

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Please do not cross post. Ask on the site you think most appropriate, then if you change your mind flag it to be migrated so you don't waste people's time resolving a question that is being worked on and maybe even solved elsewhere. – Caleb Jul 25 '11 at 10:21

You can use a pidfile with any programming language. It's very easy.

There are some examples in this question on StackOverflow.

  • 3
    Instead of saying "it's easy in any language" and linking elsewhere, it would be better to provide a working example customized to the context of this question. – Caleb Jul 25 '11 at 9:14
  • Thanks for the suggestion. I didn't want a copy/paste response, any simple example in python is useful for the question. – Rufo El Magufo Jul 25 '11 at 16:31

Not the answer you're looking for? Browse other questions tagged or ask your own question.