/usr/bin/sh: /usr/bin/awk: No such File or Directory Message

2009-01-19 Thread blazt
I am trying to create a portable cygwin install. I downloaded all the packages I needed and installed Cygwin on a Box. I then tried to Zip them all into a self extracting.exe. When I unzip them on a clean machine it appears to work. However when I try to run ssh-host-config I get these errors. I a

Re: automate SSH-HOST-CONFIG

2009-01-16 Thread blazt
quot;yes\r"; exp_continue } "Please enter" { send "pwd\r"; exp_continue } "Reenter:" {send "pwd\r"; exp_continue } } blazt wrote: > > Thank you Dimitri. It was my bin bash that cuased it to not work. I was > not aware that I did not have

Re: automate SSH-HOST-CONFIG

2009-01-15 Thread blazt
Thank you Dimitri. It was my bin bash that cuased it to not work. I was not aware that I did not have to include that. Once I fixed that and put things back. it worked. Thank you Dmitry Semyonov-2 wrote: > > On Tue, Jan 13, 2009 at 22:16, blazt wrote: > >> I created the

Re: automate SSH-HOST-CONFIG

2009-01-13 Thread blazt
expect { "Should this script create a local user 'sshd' on this machine? (yes/no)" { send "yes\r" } "new local account 'sshd'? (yes/no)" { send "yes\r" } } I took out the exec so I could see the script run and it simply hangs at the first

Re: automate SSH-HOST-CONFIG

2009-01-12 Thread blazt
I am not sure how to do a except script. I have been looking at what I can find on the net. Would I pass this command into the except part? blazt wrote: > > How can I automate this process? If I do a ssh-host-config -y it works > fine all the way up to asking about the privileged a

automate SSH-HOST-CONFIG

2009-01-09 Thread blazt
How can I automate this process? If I do a ssh-host-config -y it works fine all the way up to asking about the privileged account. 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? T