11.07.2015 Views

Perforce 2003.1 Command Reference

Perforce 2003.1 Command Reference

Perforce 2003.1 Command Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

p4 counterp4 counterSynopsisAccess, set, or delete a persistent variable.Syntaxp4 [g-opts] counter counternamep4 [g-opts] counter countername valuep4 [g-opts] counter -d counternamep4 [g-opts] counter -f [ change | job | journal | monitor [ 1 | 0 ] ]DescriptionCounters provide long-term variable storage for scripts that access <strong>Perforce</strong>. For example,the <strong>Perforce</strong> review daemon uses a counter (review) that stores the number of the lastprocessed changelist.When used in the form p4 counter countername, the value of variable countername isreturned. When p4 counter countername value is used, the value of variablecountername is set to value.The <strong>Perforce</strong> server uses three counters in the course of its regular operations: change,job, and journal. Superusers may use the -f flag to force changes to these counters.Changes to these counters are not without risk; see the Release Notes for examples of thetypes of situations in which manually resetting these counters might be appropriate.You can enable or disable server process monitoring by setting the monitor counter to 1 or0. You must stop and restart the <strong>Perforce</strong> server for this change to take effect. Onceprocess monitoring is enabled, you can use p4 monitor to observe processes spawned bythe <strong>Perforce</strong> server.Options-d countername Delete variable countername from the <strong>Perforce</strong> server.-f [change|job|journal] Force a change to one of three internal counters used by<strong>Perforce</strong>. Most installations rarely, if ever, need to use thisflag.-f monitor [ 1 | 0 ] Activate or deactivate server process monitoring.See p4 monitor for details.g-optsSee the Global Options section.34 <strong>Perforce</strong> <strong>2003.1</strong> <strong>Command</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!