Re: automate SSH-HOST-CONFIG

2009-01-16 Thread blazt
the provided sample works. Read the >> man. Experiment with simple things. >> >> -- >> ...Bye..Dmitry. >> >> -- >> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple >> Problem reports: http://cygwin.com/problems.html >> Documentat

Re: automate SSH-HOST-CONFIG

2009-01-15 Thread blazt
eriment with simple things. > > -- > ...Bye..Dmitry. > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Problem reports: http://cygwin.com/problems.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cyg

Re: automate SSH-HOST-CONFIG

2009-01-15 Thread Dmitry Semyonov
On Tue, Jan 13, 2009 at 22:16, blazt wrote: > I created the script based on yours but it never sends the expect back to > the program. > > #!/bin/bash This line was not included into my sample. I doubt it can work this way. > #!./expect -f Why the dot-slash? Do you have expect executable in you

Re: automate SSH-HOST-CONFIG

2009-01-13 Thread blazt
on be used? (yes/no)" { send "yes\r" } > } > > set timeout 5 > > expect { > "Should this script create a local user 'sshd' on this machine? > (yes/no)" { send "yes\r" } > "new local account 'sshd'? (yes/no)&qu

Re: automate SSH-HOST-CONFIG

2009-01-13 Thread Dmitry Semyonov
Hi Johnny, On Tue, Jan 13, 2009 at 03:28, blazt wrote: > > I am not sure how to do a except script. I have been looking at what I can > find on the net. It is 'expect', not 'except'. It's enough to read 'man expect' for basics. You'll have to learn some Tcl docs for advanced usage, (not required

Re: automate SSH-HOST-CONFIG

2009-01-12 Thread blazt
ccount. I want to use > this account and can add the password to the command line parameter but > how can I answer yes for the first part but no when it comes to this > question? > > Thanks > -- View this message in context: http://www.nabble.com/automate-SSH-HOST-CONFIG-tp

Re: automate SSH-HOST-CONFIG

2009-01-10 Thread Dmitry Semyonov
On Sat, Jan 10, 2009 at 03:34, blazt wrote: > How can I automate this process? Create 'expect' script. You'll likely have to update it here and there after ssh-host-config upgrades though. -- ...Bye..Dmitry. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports:

automate SSH-HOST-CONFIG

2009-01-09 Thread blazt
? Thanks -- View this message in context: http://www.nabble.com/automate-SSH-HOST-CONFIG-tp21383170p21383170.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html