Skip to content

Interactive bash script #194

Answered by mihaimyh
mihaimyh asked this question in Q&A
Feb 8, 2023 · 3 comments · 7 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: 3 comments 7 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
Comment options

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

@OrgesKreka
Comment options

@Tyrrrz
Comment options

@OrgesKreka
Comment options

@Tyrrrz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants