Skip to content

Instantly share code, notes, and snippets.

@dheaney
Created December 22, 2013 21:06
Show Gist options
  • Select an option

  • Save dheaney/8088462 to your computer and use it in GitHub Desktop.

Select an option

Save dheaney/8088462 to your computer and use it in GitHub Desktop.
import subprocess
lpr = subprocess.Popen("/usr/bin/lpr", stdin=subprocess.PIPE)
lpr.stdin.write(your_data_here)
@DONGHAEY
Copy link
Copy Markdown

DONGHAEY commented Jan 21, 2023

what can I input in 'your_data_here'?????
It was not path string...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment