Previous Table of Contents Index Next
Perforce 2009.2: Command Reference



p4 replicate
Synopsis
Poll for journal changes on one Perforce Server for forwarding to another Perforce Server.
Syntax
p4 replicate [-j token] [-s statefile] [-i interval] [-k -x] [-J prefix] [-o output] [command]
Description
This command polls for new journal entries from a Perforce Server, and either outputs them to standard output, or, if a command is specified, pipe the journal records to the command, which is spawned as a subprocess.
Options
-j token
Specify a journal number or position token of the form journalnum/byteoffset from which to start replicating metadata. If this flag is specified, it overrides any state file specification.
-s statefile
-i interval
Specify a polling interval, in seconds. The default is two seconds. To disable polling (that is, to check once for updated journal entries and then exit), specify an interval of 0.
-J prefix
Keep the pipe to the command subprocess open between polling intervals.
Exit the p4 replicate command when journal rotation is detected.
-o savefile
Specify a file for output. If a command subprocess is specified, both the subprocess and the specified savefile are provided with the output.
Usage Notes
Can File Arguments Use
Revision Specifier?
For more information, see the System Administrator's Guide and the following Perforce Knowledge Base article:
http://kb.perforce.com/?article=1099
 


Previous Table of Contents Index Next

Perforce 2009.2: Command Reference
Copyright 1999-2009 Perforce Software.