0

in order to monitor the activity of a specific process on lots of Raspberry Pi devices connected via LAN to a Linux server, I wrote a simple script that looped into this command:

ssh pi@raspberry 'pidof my_program'

as many times as the devices number and returned me the return value of the command for each of them.

Now, one of our customers only has a Windows IIS web server with PuTTY and WinSCP installed.

I am totally noob with Windows, and I don't know if there's an elegant way to have the same output as the command above.

Could anyone help me?

Note: My Client OS is Raspbian; Note: My Server OS is Windows Server 2008 R2.

Thank you, Riccardo

Guerriky
  • 529
  • 1
  • 5
  • 15

1 Answers1

1

If you have PuTTY you may also have plink.exe which is on the PuTTY download page -> http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

plink.exe pi@raspberry "/sbin/pidof my_program"

Matt Gartman
  • 867
  • 4
  • 9