Python Script Not Waiting For User Input When Ran From Piped Bash Script
I am building an interactive installer using a nifty command line: curl -L http://install.example.com | bash The bash script then rapidly delegates to a python script: # file: ins
Solution 1:
You can always redirect standard input from the controlling tty, assuming there is one:
/usr/bin/env python3 deploy_p3k.py < /dev/tty
or
/usr/bin/env python3 deploy_p3k.py <&1
Post a Comment for "Python Script Not Waiting For User Input When Ran From Piped Bash Script"