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-square16fedilinkarrow-up1176arrow-down125
arrow-up1151arrow-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-square16fedilink
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