1

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

1
  • 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
    Commented Jul 25, 2011 at 10:21

1 Answer 1

0

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

There are some examples in this question on StackOverflow.

2
  • 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
    Commented Jul 25, 2011 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. Commented Jul 25, 2011 at 16:31

Not the answer you're looking for? Browse other questions tagged .