Automating “yes” input for a script or binary on linux.

Use the linux utility yes.

yes <input> | /path/to/script

This will continually input the <input< word into the /path/to/script file. Its useful for automating input into a script or binary and can be used to automate any type of input – don’t let the program’s name fool you.

This entry was posted in Programming, Ubuntu Linux, Webhosting and tagged . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.