this post was submitted on 09 Dec 2023
145 points (87.2% liked)

Programmer Humor

32831 readers
530 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 1 year ago* (last edited 1 year ago)

With the correct permission you should be able to write straight into pythons stdin from /proc like

Cat whatever > /proc/$pythonpid/fd/0