"Mikael Larsson" <mikael.x.larsson / tele2.se> schrieb im Newsbeitrag news:200407061752.20570.mikael.x.larsson / tele2.se... > Hi all > Is there any standard way to do or mimic this shell construction in ruby > > someprog << STOP > file1.dat > > file2.dat > 30 > STOP > > Regards, > //Mike > From memory popen("someprog") do |io| io.print <<STOP file1.dat file2.dat 30 STOP end robert