Thanks, \executesystemcommand{myscript.rb} seems to work.
But what is the best way to insert a result (say, formatted text) into the 'caller' document body?
The only idea I have is to use \input later in the document, but I'm not sure that it would work.
Best regards,
Vyatcheslav