[p4] P4 Sending Mass Emails
jgrills at soe.sony.com
Sat Mar 19 21:18:27 PST 2005
We have some scripts run from cron that send duplicate emails when the
script can't finish before the next cron interval kicks the script off
again. You could try lengthening the time between runs of the review
daemon, or protect the script from running twice.
One easy trick in the unix scripting world to prevent multiple
executions is to create a directory at the start of the script, and
remove it at the end. You are guaranteed that creating a directory is
an atomic operation in the file system - if you fail to create the
directory, the last instance of the script is still running. Of course,
you have to make sure that every way the script can exit will remove the
directory. It may be worth creating a tiny wrapper script that makes
the directory, executes the real script, and then removes the directory.
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Dave Lewis
Sent: Friday, March 18, 2005 12:03 PM
To: rduffus at ati.com
Cc: perforce-user at perforce.com
Subject: Re: [p4] P4 Sending Mass Emails
> We are having a major problem with our server. A user created a
> that would add a bunch of files to the depot. A few of us have our
> section turned on. The problem is that the server will not stop
> emails (~100 every 5 minutes) even after a reset. Before this
> enabled the monitor counter and I suspect that this is the cause of
> emails but I disabled it, reset the server and it is still sending
> Does anyone know how to get the server to stop sending emails?
each user who does not want to get the emails should edit the
Reviews: mappings in their perforce user profile to exclude the
depot area where the changes are happening.
More information about the perforce-user