Perforce Command Reference:   [Index] [Prev] [Next]


p4 counter

Synopsis

Access, set, or delete a persistent variable

Syntax

p4 [g-opts] counter countername
p4 [g-opts] counter countername value
p4 [g-opts] counter -d countername

Description

Counters provide long-term variable storage for scripts that access Perforce. For example, the Perforce review daemon uses a counter review that stores the number of the last processed changelist.

When used in the form p4 counter countername, the value of variable countername is returned. When p4 counter countername value is used, the value of variable countername is set to value.

The Perforce server uses three counters in the course of its regular operations: change, job, and journal. Do not change the value of any of these counters; if you do, you will corrupt the server.

Options

-d countername Delete variable countername from the Perforce server.
g_opts See global options section.

Usage Notes

Can File Arg Use
Revision Specifier?
Can File Arg
Use Revision Range?
Minimal
Access Level Required
<NA> <NA> review

Related Commands

To list all counters and their values p4 counters
List and track changelists p4 review
List users who have subscribed to particular files p4 reviews



Perforce Command Reference:   [Index] [Prev] [Next]


Copyright 1999 Perforce Software.
Contact us at [email protected]
Last updated: 09/15/99 (Manual version 99.1.cr.6)