1
1
I am using WinSCP with PuTTY and I have setup an auto login to PuTTY from WinSCP. I have a bat file that opens the WinSCP and several connections to remote machines and once the WinSCP connects it also automatically opens the PuTTY.
What I want is to send command top
to the PuTTY after login. Is there any way to do it ?
I am monitoring several Linux servers. I want that after the PC starts up, it automatically opens PuTTY console with and send a top
command.
Well, but there is one problem, later if I want to start up another season of putty for something different than watching top I cannot leave the top because once I do ctrl+c the session and entire putty windows is closed. – Dakado – 2016-03-15T20:54:28.677
Replace the
top
withtop ; /bin/bash
to start a bash shell after you terminate thetop
. – Martin Prikryl – 2016-03-16T06:50:08.360