Python Forum
Run python script remotely using screen
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Run python script remotely using screen
#1
I am using intel upboard as remote machine and MacBook (using Ubuntu Linux) as my local machine.

I have python script A.py on local machine which has some variables (lets say a and b). I want to pass the values of the variables to remote file lets say B.py which is on the remote machine (intel upboard).

Can anyone please tell me how to do it?

I am using the following line of code to accomplish this, but its neither carrying the values of the variables neither its doing anything after getting into upboard.

File A.py on MacBook contains the following line of code


os.system('screen /dev/ttyUSB0 baudrate\'python B.py {} {}\''.format(x,y))
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Is there a *.bat DOS batch script to *.py Python Script converter? pstein 3 3,006 Jun-29-2023, 11:57 AM
Last Post: gologica
  Python 3 Turtle - Screen Events and Coords peteralien 0 1,651 Aug-18-2020, 11:25 PM
Last Post: peteralien
  How to kill a bash script running as root from a python script? jc_lafleur 4 5,788 Jun-26-2020, 10:50 PM
Last Post: jc_lafleur
  crontab on RHEL7 not calling python script wrapped in shell script benthomson 1 2,247 May-28-2020, 05:27 PM
Last Post: micseydel
  Package python script which has different libraries as a single executable or script tej7gandhi 1 2,583 May-11-2019, 08:12 PM
Last Post: keames
  wn = turtle.screen() AttributeError: module 'turtle' has no attribute 'screen' Shadower 1 6,124 Feb-06-2019, 01:25 AM
Last Post: woooee
  How to run python script which has dependent python script in another folder? PrateekG 1 3,105 May-23-2018, 04:50 PM
Last Post: snippsat
  How to call one python script and use its output in another python script lravikumarvsp 3 32,286 May-16-2018, 02:08 AM
Last Post: lravikumarvsp
  Check Python version from inside script? Run Pythons script in v2 compatibility mode? pstein 2 9,788 Jul-07-2017, 08:59 AM
Last Post: snippsat
  Cant pass corect variables to python script in bash script neradp 3 6,130 Nov-05-2016, 01:26 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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