On Tue, 28 Mar 2000, you wrote:
> How about the plain old lock-file trick? First thing the script does is check if
> a file called 'lock' or something, exists. If not, it creates an empty file
> called 'lock', and continues. When it's finished, it deletes the file. All you
> have to do is make sure that you check for the files existance in the beginning
> of the script, and use a simple 'if' to determine if it will continue, or die
> right there and then.
> 
How about a shell script to call the perl script? Use the
shell script to create the lock file and then call the perl
script as well as delete the lock file AFTER the perl
script exits, or have the perl script delete the lock file
as the last thing it does???
        John

Reply via email to