Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

plink can read in a command file:

  -m file   read remote command(s) from file
4. Execute Multiple Linux Commands from a Windows File

Warning that it may not work with some devices:

With some servers (particularly Unix systems), you can even put multiple lines in this file and execute more than one command in sequence, or a whole shell script; but this is arguably an abuse, and cannot be expected to work on all servers. In particular, it is known not to work with certain ‘embedded’ servers, such as Cisco routers.