I'm trying to automate 1000 SSH sessions linux-based from BAT
file and PuTTY v0.75. However, I want when the sessions opened, they execute node.js
script in all windows. So, I use this command:
@echo off
for /l %%N in (1 1 1000) do start "" putty.exe -load "iot" iot@5.18.23.6 -pw password -m "D:\Programs\PuTTY\test.txt"
in test.txt
:
node pow.js
The problem is that the session opens, and then it exits without performing the command.
Any help?