-
-
Notifications
You must be signed in to change notification settings - Fork 725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gource does not stop simulation when reading from STDIN #334
Comments
Did you try ending your stream with |
@mschilli87, I am running PowerShell on MacOS, but I do not think it makes much of a difference since PowerShell is cross-platform? I tried adding I tried: $CombinedLog += "`^D" (which I am aware is very naive) and $CombinedLog += [char]4 Neither worked. The temporary file solution works and was my original approach. I just would like to avoid temporary files lying around in case the script is aborted. Streaming seems like the perfect solution for that. The simulation also stops if the StopDate is within the streamed lines, but not if the stream ends. Is this maybe a Bug? |
By ^D I meant Ctrl+D. I don't use powershell so I don't know how to do that. I just think that gource keeps waiting for more input because the stream is not terminated. |
@mschilli87 yes, I think that |
In bash one can type Ctrl+V followed by Ctrl+D IIRC. |
And within a bash script? |
I meant when writing the script you can use Ctrl+V followed by Ctrl+D to enter a literal Ctrl+D . This way you can use printf and cat or sed or any other tool to edit the stream to append it to your stream. But I never had to do this is bash. And I don't know powershell. I just doubt there is any issue with gource but rather with your script. If you replace gource by wc, do you get a word count or is it also waiting for more input? |
I have a powershell script to generate a mp4 video using gource. The script looks like this:
Overall the script does what it should. The issue I have is that at the end of the
$CombinedLog
, the gource simulation does not terminate.The reason I use a
$CombinedLog
is that I am merging multiple repositories.Is there any way to tell gource that the stream is finished?
The stream currently consists of concatenated newline-separated lines in a single string.
The text was updated successfully, but these errors were encountered: