unix - Kill a process in remote linux machine using batch file -
i new field , need kill process running in remote linux machine have started nmon process using batch file.... batch file contains start putty command invokes .sh file in remote , start nmon...
now need kill process using batch file. tried using kill pgrep nmon..... when execute batch file showing "network error. couldnt connect specified address"
is there way kill process using batch file uses putty windows machine???
instructions execute remote instruction using ssh connection windows non-interactive shell using credentials:
- create text file list of commands executed. (examaple: create file
c:\remote_commands.txt
commandpkill process-name
inside) - execute cli or create batch line this:
c:\path\putty.exe -ssh user@ip-address -pw password -m c:\remote_commands.txt
some commands may require user administrative privileges, carefull point.
that's all, try , enjoy!
there similar questions at:
Comments
Post a Comment