zhangzhuqian / gource

Automatically exported from code.google.com/p/gource
0 stars 0 forks source link

Unable to stream from STDIN #168

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I've been trying to get a perl script to output to gource in realtime.

It pretty much gets a perforce depot and converts it to the required format and 
prints each line to STDOUT. This is all well and good, it works.

It's when I try to run the gource command.
p4-gource.pl & gource --realtime --log-format custom -

I get back "Unsupported log format ( you may need to regenerate your logs )"

I'm running Windows 7 64-bit and gource 0.38. Same issue with 0.27 onwards.

Original issue reported on code.google.com by joshd...@gmail.com on 6 Nov 2012 at 12:20

GoogleCodeExporter commented 8 years ago
Hi. I'm pretty sure the problem is you need to use | to pipe the output into 
gource instead of &. ie:

p4-gource.pl | gource --realtime --log-format custom -

Original comment by acaudw...@gmail.com on 7 Nov 2012 at 6:54

GoogleCodeExporter commented 8 years ago
Hi, I just tried that, and gource still complains that the format is 
unsupported.

I'll write up a quick C++ program that puts out the same format and see if I 
can pipe it that way.

Original comment by joshd...@gmail.com on 7 Nov 2012 at 9:54

GoogleCodeExporter commented 8 years ago
The C++ program works, so the perl script is wrong.

Thanks for the help.

Original comment by joshd...@gmail.com on 7 Nov 2012 at 9:57

GoogleCodeExporter commented 8 years ago
You're welcome.

Original comment by acaudw...@gmail.com on 7 Nov 2012 at 10:07