Skip to content
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

[HELP] How do I send "ctrl+c" through terminal input? #705

Open
phere-x opened this issue Oct 15, 2023 · 4 comments
Open

[HELP] How do I send "ctrl+c" through terminal input? #705

phere-x opened this issue Oct 15, 2023 · 4 comments
Labels

Comments

@phere-x
Copy link

phere-x commented Oct 15, 2023

I have "requires terminal" enabled. I want to send what would be keystrokes of "ctrl+c" so the script I'm running isn't abruptly ended without properly finishing its process. As I'm having it download a live stream, and stopping and saving it before it naturally ends.

@bugy
Copy link
Owner

bugy commented Oct 15, 2023

Hi @phere-x , did you try using stop button on UI? It should have very similar behavior for 98% of the cases
It sends sigterm signal, which a process can intercept and finish gracefully

@phere-x
Copy link
Author

phere-x commented Oct 17, 2023

Hi I did try using the stop button but it just kills the bash script I'm triggering entirely. For further context I used YT-DLP & FFmpeg which downloads a stream in segments/parts & combines them together if the livestream ends or is halted by pressing Ctrl+C

@bugy
Copy link
Owner

bugy commented Oct 17, 2023

I see, thanks. It seems, that youtube_dl doesn't recognize SIGTERM and only recognizes SIGINT (or just ctrl+C). I guess script-server needs a way to override which signal is sent to a script on stop.

@MNeill73
Copy link

MNeill73 commented Oct 17, 2023 via email

@bugy bugy added the feature label Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants