💻 Software
How to by-pass user interactions in a script?
Fresh5 days ago
Mar 15, 202611335 viewsConfidence Score0%
0%
Problem
I am trying to automate the installation of a program through a shell script. There are a few steps which require user interaction from the command line (confirmation, yes/no, etc.). What is the best way to by-pass it? I know that one possibility is to use an expect script. Just wanted to know if t…
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How to by-pass user interactions in a script?
Low Risk
If the interaction is simple, i.e. only reads from the standard input, you can just send the particular lines to the program's input:
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix