Python Forum
Raspi Commands via Python (VS Code) Script
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Raspi Commands via Python (VS Code) Script
#6
(Oct-21-2020, 03:27 PM)buran Wrote: did you check my second post and how to wait till command execution ends? Also, of you need to provide input to remote script, shouldn't you write to stdin somewhere in your code? All you do is to read output and print it

as to writing to file - just open a file for writing and then instead of/along with print, write to the file

I did, yes. So the ssh.exec_command() would follow that snapshot command only? correct?

And i got the write to file, thank you. I appreciate your assistance as I am new to this.
Reply


Messages In This Thread
RE: Raspi Commands via Python (VS Code) Script - by AS4188 - Oct-21-2020, 03:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is there a *.bat DOS batch script to *.py Python Script converter? pstein 3 3,330 Jun-29-2023, 11:57 AM
Last Post: gologica
  Sending string commands from Python to a bluetooth device Rovelin 13 9,579 Aug-31-2021, 06:40 PM
Last Post: deanhystad
  Python library for win32 console commands eldiener 3 3,502 Aug-24-2021, 10:28 PM
Last Post: bowlofred
  Possible to execute a python script before log off/shutdown with input commands? Kaltex 1 2,285 May-18-2021, 06:31 AM
Last Post: Skaperen
  cant use ping, sudo or other commands in remote shell script. throwaway34 7 3,671 May-17-2021, 11:29 AM
Last Post: throwaway34
  How to kill a bash script running as root from a python script? jc_lafleur 4 5,956 Jun-26-2020, 10:50 PM
Last Post: jc_lafleur
  crontab on RHEL7 not calling python script wrapped in shell script benthomson 1 2,322 May-28-2020, 05:27 PM
Last Post: micseydel
  how to get PID's of linux commands executed through python modules? Manikandan_PS 4 3,076 Mar-12-2020, 07:16 AM
Last Post: Manikandan_PS
  Questions re: my first python app (GUI, cross-platform, admin/root-level commands)? DonnyBahama 0 1,743 Feb-27-2020, 08:14 PM
Last Post: DonnyBahama
  Python script dioesn`t run all commands exploit123 5 2,958 Sep-25-2019, 03:15 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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