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

Interactive Scripts with "read" #1

Open
scoopex opened this issue Oct 20, 2017 · 0 comments
Open

Interactive Scripts with "read" #1

scoopex opened this issue Oct 20, 2017 · 0 comments

Comments

@scoopex
Copy link
Owner

scoopex commented Oct 20, 2017

Create a Snippet like this

set -x
echo "---"
read -p "NA " ASK
echo $ASK

Execute it with:

hostctl -r /path/to/my/snippet -n host

Execution stops on reaching "read.
Seems to be related to piping commands to a remote "bash -s" session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant