Skip to content

Running external programs, receiving output #135

@Snigelson

Description

@Snigelson

There currently does not seem to be any way to run an external program and save the output. Or at least I can't find one. Please correct me if there is one :)

os.system only runs the program, prints output to stdout. os.popen is not implemented, and all other solutions I found uses the subprocess module.

My solution for now is to run a script using os.system which writes the output of the program to a file which can then be read from my Python program. Feels like there must be a simpler way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions