Disclaimer:: I am not an active shell scripter
How does one create a script that responds to console output? For instance, I'm trying to setup a cron that periodically svnsync 's changes to my repository to a backup server every midnight. The problem is, in order to sync, it prompts for authorization credentials.
svnsync sync accepts no options to specify a login thus a simple cron command is out. I believe I can launch a script but I'm trying to figure out how to make it respond to console output.
ken@server:~$ svnsync sync https://svn3.backup.net/svn/mirror Authentication realm: <https://svn3.backup.net/svn/mirror:443> backup.net Subversion Backup Password for 'ken': ***<send return key>*** Username:***<specify backup.net username>*** Password for '<the name>':***<specify password for username>*** <It proceeds to check out>
***< message >*** is the action I want the script to respond to.