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:

  1. create text file list of commands executed. (examaple: create file c:\remote_commands.txt command pkill process-name inside)
  2. 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

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -