Skip to content

Interactive bash script #194

Answered by mihaimyh
mihaimyh asked this question in Q&A
Feb 8, 2023 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

I found what the problem is: the script was not properly consuming all of the input. Adding a newline character at the end of each input string, fixed the issue:

buffer.Clear();
buffer.Append("user123\n");
semaphore.Release();
buffer.Clear();
buffer.Append("pass123\n");
semaphore.Release();

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Tyrrrz
Comment options

@citystrawman
Comment options

Answer selected by mihaimyh
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants