Python Forum
running produced python code
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
running produced python code
#1
is there a way to get the Python engine to exec some command or script via a pipe and read the python code from that pipe as the code it will interpret? i have seen programs that read something from a file accept a '|' as the first character of a file name and treat the remaining characters as a command string and run that command to produce the contents. i have a couple cases where i would sometimes like to invoke the python command that way.

i've been thinking of adding this capability to my zopen() function. but that is not something the python engine uses.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
running produced python code - by Skaperen - Dec-23-2021, 12:20 AM
RE: running produced python code - by BashBedlam - Dec-23-2021, 03:19 AM
RE: running produced python code - by Skaperen - Dec-24-2021, 08:40 PM
RE: running produced python code - by Gribouillis - Dec-24-2021, 09:44 PM
RE: running produced python code - by Skaperen - Dec-25-2021, 01:53 AM
RE: running produced python code - by Gribouillis - Dec-25-2021, 07:02 AM
RE: running produced python code - by Skaperen - Dec-25-2021, 05:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  compiling but not running source code Skaperen 1 1,387 Jun-05-2022, 10:47 PM
Last Post: Gribouillis
  code running after tracebacks Skaperen 0 1,295 Oct-03-2021, 12:09 AM
Last Post: Skaperen
  Running three-year old python code ErnestTBass 4 2,596 Jun-19-2020, 02:46 PM
Last Post: snippsat
  Recovering lost source code when the code is running in memory micseydel 13 9,887 Apr-14-2017, 02:35 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