einfach_orangensaft@feddit.de to Programmer Humor@lemmy.ml · 9 months agoit writes to output to the terminal or it gets the SIGTERM againfeddit.deimagemessage-square16fedilinkarrow-up1175arrow-down125
arrow-up1150arrow-down1imageit writes to output to the terminal or it gets the SIGTERM againfeddit.deeinfach_orangensaft@feddit.de to Programmer Humor@lemmy.ml · 9 months agomessage-square16fedilink
minus-squaremvirts@lemmy.worldlinkfedilinkarrow-up3·edit-29 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