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
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
"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 rubysomeprog << STOP
file1.datfile2.dat
30
STOPRegards,
//Mike
From memory
popen("someprog") do |io|
io.print <<STOP
file1.dat
file2.dat
30
STOP
end
robert