[p4] How to suppress p4 command output message?

Stephen Vance 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.

Steve

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
> c:\test\dev\main\bin\bin.linux24x86\readme.txt
> //depot/dev/main/bin/bin.ntx86/glut32.dll#1 - added as
> c:\test\dev\main\bin\bin.ntx86\glut32.dll
> //depot/dev/main/bin/bin.ntx86/jamgraph.exe#2 - added as
> c:\test\dev\main\bin\bin.ntx86\jamgraph.exe
> [...]
>
> My question is how to suppress displaying these messages, somthing like in a
> silent mode?
>
> Any help is greatly appreciated.
>
> Regards,
> Petal
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>
>   

-- 
Stephen Vance
www.vance.com



More information about the perforce-user mailing list