Author Topic: Send Python Script To RPi  (Read 2707 times)

0 Members and 1 Guest are viewing this topic.

tyebeach

  • Jr. Member
  • **
  • Posts: 19
  • Karma: 0
    • View Profile
Send Python Script To RPi
« on: April 15, 2015, 06:54:42 PM »
I have a Raspberry Pi setup on my network and I was wondering if there was a way to send a python script to the pi or possibly, ssh in and run a python script saved in the root folder?

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Send Python Script To RPi
« Reply #1 on: April 15, 2015, 07:06:54 PM »
I don't have such a device but that sounds like the kind of thing that is not possible.  Usually you would need to have some kind of application running on the Pi already that can respond to some sort of network message.

OK, maybe the ssh thing would be possible somehow but I have no idea what would be involved in trying to automate something like that from Python.

Maybe someone else will have an idea.

You might be able to find something similar to EventGhost that can run on a Pi.

tyebeach

  • Jr. Member
  • **
  • Posts: 19
  • Karma: 0
    • View Profile
Re: Send Python Script To RPi
« Reply #2 on: April 15, 2015, 07:17:07 PM »
Would there be a way to use PuTTY? If we could have VC send a command to PuTTY, PuTTY could then pass it along to the Pi.

I'm not well versed in any of this, but I assume that would be a way to pull it off.
« Last Edit: April 15, 2015, 07:20:01 PM by tyebeach »

tyebeach

  • Jr. Member
  • **
  • Posts: 19
  • Karma: 0
    • View Profile
Re: Send Python Script To RPi
« Reply #3 on: April 15, 2015, 08:34:27 PM »
Thanks jitterjames, I was able to get this to work using eventghost and PuTTY.