Skip to content
Discussion options

You must be logged in to vote

Hi marco,
thank you for using our library.

In my bash, if I try:

daniele@daniele-kubuntu-22:~/projects/cli/cli_repo/build/examples$ cat start_complete.sh 
#!/bin/bash

./complete <<EOF
color
sub
demo
exit
EOF

I get the correct output:

daniele@daniele-kubuntu-22:~/projects/cli/cli_repo/build/examples$ ./start_complete.sh 
cli> color
Colors ON
cli> sub
submenu> demo
This is a sample!
submenu> exit
Closing App...
Goodbye and thanks for all the fish.

I guess you've hit a very common issue when scripting interactive Command Line Interfaces (CLIs) that wrap network operations.

Your suspicion that the commands might be executed in the wrong order is likely correct, but the cause isn't the scri…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mcraveiro
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
2 participants
Converted from issue

This discussion was converted from issue #250 on November 07, 2025 17:33.