Q
Qubert
I have been working on a couple of Ruby wrappers for some fortran
programs. They are running a bit long (300+ lines), however Ruby has
been excellent in handling them.
My concerns are they are a bit too long to join together in one program,
but they will often run together. I want the second script to be run
independently, but if the first one is run, I want the second to be
called from within the first.
Is the best way to accomplish this to write a line in the first script:
`/usr/local/bin/secondscript.rb`
This doesn't seem to be the Ruby way since it relies on the shell, plus
I would like to send some global variables across if continued from the
first script.
Any advice would be appreciated.
Chris
programs. They are running a bit long (300+ lines), however Ruby has
been excellent in handling them.
My concerns are they are a bit too long to join together in one program,
but they will often run together. I want the second script to be run
independently, but if the first one is run, I want the second to be
called from within the first.
Is the best way to accomplish this to write a line in the first script:
`/usr/local/bin/secondscript.rb`
This doesn't seem to be the Ruby way since it relies on the shell, plus
I would like to send some global variables across if continued from the
first script.
Any advice would be appreciated.
Chris