Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Save console output to text file (like a log)
Post: RE: Save console output to text file (like a log)

(Jun-02-2019, 06:48 PM)snippsat Wrote: Using logzero simplify logging,as don't have to write all that boilerplate logging code. Thanks for the help! Getting this error: Error:Traceback (most recent...
koticphreak General Coding Help 9 29,352 Jun-02-2019, 07:03 PM
    Thread: Save console output to text file (like a log)
Post: RE: Save console output to text file (like a log)

(Jun-02-2019, 05:31 PM)buran Wrote: (Jun-02-2019, 05:15 PM)koticphreak Wrote: As part of the script, it runs a 3rd party program and half of the output is from that program - trying to capture eve...
koticphreak General Coding Help 9 29,352 Jun-02-2019, 05:44 PM
    Thread: Save console output to text file (like a log)
Post: RE: Save console output to text file (like a log)

(Jun-02-2019, 04:57 PM)buran Wrote: check logging module. you can specify both console and file handler(s) Thanks, this is helpful! If I'm reading this correctly, I have to both print things and sen...
koticphreak General Coding Help 9 29,352 Jun-02-2019, 05:15 PM
    Thread: Save console output to text file (like a log)
Post: Save console output to text file (like a log)

I have a python script that runs and it outputs things along the way. It's important that it outputs them in the command line, but at the end, I want to save whatever it output to a txt file, like a l...
koticphreak General Coding Help 9 29,352 Jun-02-2019, 04:32 PM
    Thread: Pass command line argument with quotes
Post: RE: Pass command line argument with quotes

(May-31-2019, 10:34 PM)Gribouillis Wrote: What have you tried with python code?subprocess.call(["C:\Program Files\Editor\Editor.exe", "C:\Downloads\123.pdf"])
koticphreak General Coding Help 3 3,322 May-31-2019, 10:46 PM
    Thread: Pass command line argument with quotes
Post: Pass command line argument with quotes

I'm relatively new to Python and have googled around enough to understand in general how to use os.system and subprocess, but struggling to essentially send a command like this via my python script: ...
koticphreak General Coding Help 3 3,322 May-31-2019, 10:25 PM

User Panel Messages

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