Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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 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
add comment

1 Answer 1

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
1  
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. –  Juan Francisco Cantero Hurtado Jul 25 '11 at 16:31
add comment

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