From the workflow, I am connecting to a remote server and running a shell script and the shell script is prompting for input, How can I pass the default value to it? I've used input but shell script is not taking it

From the workflow, I am connecting to a remote server and running a shell script and the shell script is prompting for input, How can I pass the default value to it? I’ve used input but shell script is not taking it

Welcome to the GitHub community, @guruprasadsingirikonda ! We’re happy you’re here. You are more likely to get a useful response if you are posting your question(s) in the applicable category and are explicit about what your project entails–giving a few more details might help someone give you a nudge in the right direction. I’ve gone ahead and moved it for you. Good luck!

That really depends on details, as in the exact commands you’re running, including the connection to the remote server, etc.

In most cases you can write to stdin of the process you’re calling, or use a tool like expect for more complex interaction. However some programs do their own thing and may require special handling (e.g. entering a password for SSH).