Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
subprocess open pi then?
#1
import subprocess

print("Below is the output from the shell script in terminal")
subprocess.call('ssh [email protected]', shell=True)


The above opens my raspi from VS Code, how can i get my vs code on my mac to also have commands run when it opens the pi? Or do i have to run the .py from the pi itself?

Can you use another subprocess module to do this?
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020