einfach_orangensaft@feddit.de to Programmer Humor@lemmy.ml · 11 months agoit writes to output to the terminal or it gets the SIGTERM againfeddit.deimagemessage-square18fedilinkarrow-up1177arrow-down125
arrow-up1152arrow-down1imageit writes to output to the terminal or it gets the SIGTERM againfeddit.deeinfach_orangensaft@feddit.de to Programmer Humor@lemmy.ml · 11 months agomessage-square18fedilink
minus-squaremvirts@lemmy.worldlinkfedilinkarrow-up3·edit-211 months agoWith the correct permission you should be able to write straight into pythons stdin from /proc like Cat whatever > /proc/$pythonpid/fd/0
With the correct permission you should be able to write straight into pythons stdin from /proc like
Cat whatever > /proc/$pythonpid/fd/0