[p4] How to suppress p4 command output message?
steve at vance.com
Mon Oct 26 01:23:45 PDT 2009
Since you have a drive letter in your example, I'll use Windows
terminology, although it's almost identical to Unix sh syntax.
p4 sync > NUL: 2>&1
NUL: is the null device, equivalent to /dev/null on Unix.
The first > says to redirect stdout to the null device.
The expression 2>&1 says to tie stderr to stdout
The order of the last two redirects is important.
xiaoguang wang wrote:
> Hi all,
> As you know, when executing p4 command, it will show corresponding messages
> in the command ouput.
> E.g., ""sync" command will sync all files and the following information will
> be listed in the command output.
> C:\test>p4 sync
> //depot/dev/main/bin/bin.linux24x86/readme.txt#1 - added as
> //depot/dev/main/bin/bin.ntx86/glut32.dll#1 - added as
> //depot/dev/main/bin/bin.ntx86/jamgraph.exe#2 - added as
> My question is how to suppress displaying these messages, somthing like in a
> silent mode?
> Any help is greatly appreciated.
> perforce-user mailing list - perforce-user at perforce.com
More information about the perforce-user