Scripting In Putty Error



Hi All,
I'm trying desperitly to write code that will work for Putty. Long
story short, I'm trying to write a batch file that will launch Putty
and read a script file which will run a series of commands. My setup
in the batch script is as follows:

putty.exe -ssh xxx.xxx.xxx.xxx -l Username -pw Password -m lc.txt

Then, within the contents of the text file I have the following:


ena
"Enable Password"
configure terminal
interface eth 0/17
shutdown
exit
interface eth 0/23
shutdown
exit
exit
exit

It dosn't even get to executing my text file and I recieve the
following:

Server refused to start a shell/command.

.



Relevant Pages

  • Re: drag/drop file-icon on tcl-script? on windows
    ... drag a file onto the programs Icon, or it's shortcut, and ... Wrap your script in a batch file. ... start tclkit "%~f0" & exit ... Most people on windows have ActiveState so he's more likely to have ...
    (comp.lang.tcl)
  • RE: How to make a batch file to start program and close the old window?
    ... How to make a batch file to start program and closethe ... a signal when your parent shell exits. ... nohup command & ... the '&' lets the shell continue instead of waiting, and the 'exit' ...
    (Fedora)
  • Re: DOS Commands
    ... >> Does anyone know a DOS command to close a program? ... >> automate a process and are trying to get a batch file that will open ... as one can close the batch file window with a simple EXIT ...
    (microsoft.public.win2000.general)
  • Re: How to copy(not redirect) IE fav to network drive
    ... @echo off ... There are a few problems with your batch file: ... You may want to add the /d switch so that old files ...
    (microsoft.public.windows.server.general)