Skip to main content
6 events
when toggle format what by license comment
Apr 22, 2013 at 22:39 comment added MaQleod It runs the specified command and then when there is a prompt for user input it inputs what you specify. Imagine that the example script is the like the script in this answer where it does an ssh command. You'd create another script that looks like the second option. When the second script runs and calls the first script, it'll answer the prompt with whatever is between the EOF entries.
Apr 22, 2013 at 8:47 comment added André Schild What is the terminal type you have on the OS-X side ? Normaly this type is taken and "forwarded" to the server side of ssh. Depending on your ssh client on OS-X, perhaps this one applies ? rit.edu/its/services/desktop_support/mac/…
Apr 20, 2013 at 21:44 comment added Rebecca I looked thru the comments there, but don't understand how that would apply here. Can you explain a little more? It seems like in that example, the goal is getting user input.
Apr 19, 2013 at 23:51 comment added MaQleod See the last comment here to add to this script in order to do an automated response: unix.com/shell-programming-scripting/…
Apr 19, 2013 at 23:28 comment added Rebecca Thanks - I want to be able to automate the response when prompted for terminal type though - that's the main problem I have. I don't know how I can do that with a bash script, which is why I was looking for other options.
Apr 19, 2013 at 20:47 history answered André Schild CC BY-SA 3.0