multiple instance on Unix

Skip Montanaro skip at pobox.com
Wed Sep 29 17:46:10 EDT 2004


    Nigel> I had a program that was called randomly by specific emails
    Nigel> arriving which asked for certain information. If two or more
    Nigel> emails arrived simultaneously then procmail asked two or more
    Nigel> instances of my program to run. These instances interfered with
    Nigel> one another, so I needed a process to stop that from
    Nigel> happening.

That process is procmail. <wink> Use procmail's lock mechanism and only one
instance of your program will run at a time.

Skip



More information about the Python-list mailing list