this post was submitted on 09 Dec 2023
152 points (87.6% liked)

Programmer Humor

32050 readers
1544 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 9 months ago* (last edited 9 months ago)

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

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