$ screen -S log
$ irb irb(main):001:0>
$ screen -S log -X stuff 'puts "Hello world!\n" '
irb(main):009:0> puts "Hello world!\n" Hello world! => nil