From: gabriele renzi Date: 2003-12-09T08:47:03+09:00 Subject: Re: Joining scripts? il 8 Dec 2003 09:31:41 -0800, qubert@austin.rr.com (Qubert) ha scritto:: > >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. I'll wrap up the main functions in a method. then adding something like this # script 1 if __FILE__=$0 function_one() load 'script2' function_two() end #script 2 if __FILE__=$0 function_two() end and so on.. maybe someone has a better way >Any advice would be appreciated. >Chris