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
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
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
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
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
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
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:
?
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
8 matches
Mail list logo