einfach_orangensaft@feddit.de to Programmer Humor@lemmy.ml · 1 year agoit writes to output to the terminal or it gets the SIGTERM againfeddit.deimagemessage-square18fedilinkarrow-up1174arrow-down125
arrow-up1149arrow-down1imageit writes to output to the terminal or it gets the SIGTERM againfeddit.deeinfach_orangensaft@feddit.de to Programmer Humor@lemmy.ml · 1 year agomessage-square18fedilink
minus-squaremvirts@lemmy.worldlinkfedilinkarrow-up3·edit-21 year 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