It may be writing to the STDERR
stream so this could help.
p4 -c myworkspace sync //path/... >>file.txt 2>&1
>>file.txt
will append to file.txt and >file.txt
will create a new file every time.
Question
I've got the following Perforce command in a bat file:
p4 -c myworkspace sync //path/...
and I want to re-direct the output to a file. I tried:
p4 -c myworkspace sync //path/... >> file.txt
but the output is show in the command line and doesn't appear in the file. How to solve this?
Is there a parameter I can send to perforce to write the output to a file or can I do this directly from the bat?
Solution
It may be writing to the STDERR
stream so this could help.
p4 -c myworkspace sync //path/... >>file.txt 2>&1
>>file.txt
will append to file.txt and >file.txt
will create a new file every time.