How to pass a command script to remote computer over Putty SSH and execute it ?



I can establish successfully a SSH connection over Putty and enter commands directly
in the terminal window. Fine.

However I want to automate the execution of my command sequence.

What I am searching for is a way to enter all commands into a script text file and
the pass this script file for remote execution to Putty.

How can I do this ? I would appreciate a solution similar to:

D:\ssh\putty.exe -load "myProfile" -script "D:\test\myremotecommands.txt"

but it does not work.

Marcus

.



Relevant Pages

  • Re: Execution job class restriction
    ... with) in the GUIDE "JES Job Scheduling and Control" Task Force ... What about operator commands ... point where the JOB's CLASS was valid (on some eligible member)? ... MVS image finally selected the JOB for execution at 3:45 AM, ...
    (bit.listserv.ibm-main)
  • Re: Inexact Matches -- disable?
    ... Execution of an incorrect funtion when a non-existant function ... This "broken behavior" is the MATLAB has ALWAYS worked for functions ... Internal MALTA commands like plot, min, max, etc. are a little ... There are many languages where commands are case insensitive. ...
    (comp.soft-sys.matlab)
  • Re: Q: ISQL Utility and DOS commands
    ... Tibor Karaszi, SQL Server MVP ... Execution is unconditional. ... >> server, in the security context of the SQL Server user account, whereas ... commands are executed at the machine where isql is started, ...
    (microsoft.public.sqlserver.programming)
  • GLSA: dhcpcd
    ... GENTOO LINUX SECURITY ANNOUNCEMENT 200301-3 ... SUMMARY: remote command execution ... When assigning an IP address to a network interface, dhcpcd may ... These commands may run with root privileges. ...
    (Bugtraq)
  • Problem with debug command in expect, command echoes back, issue in setting multiline value to a var
    ... I am facing a problem related to expect debug command. ... I'm using debug command in a script. ... I've an application (a test management execution engine ... I can use all tcl commands at the debug mode. ...
    (comp.lang.tcl)