Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

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

This question was marked as an exact duplicate of an existing 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.

share|improve this answer
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.