I have a Ruby script which might invoke an external program.
The external program could be written in: Ruby, Perl, KSH, CSH, BSH,
The invoked program might return a value in the the form of a return
For example, a KSH script might execute an exit 99 stmt and which
would like to capture in the invoker, Ruby script.
Ruby script segment:
I also tried in the Ruby caller script:
But rc does not have anything of value. It has either true or
Also, using Ruby to Ruby I still can’t get a Ruby script called another
script, have the called script returns a value and have the invoker Ruby
script get the value.
Is there anyway to get what I described above?