From: Tim Hunter Date: 2008-03-11T09:43:39+09:00 Subject: Re: Return codes Peter Hug wrote: > I'd like to be able to launch a little ruby application from within a > shell script or a windows command file. How can my Ruby application > return error or success codes such that the callee can verify the result > easily both in Linux and Windows? $ ri Kernel#exit ------------------------------------------------------------ Kernel#exit exit(integer=0) Kernel::exit(integer=0) Process::exit(integer=0) ------------------------------------------------------------------------ Initiates the termination of the Ruby script by raising the SystemExit exception. This exception may be caught. The optional parameter is used to return a status code to the invoking environment. -- RMagick: http://rmagick.rubyforge.org/ RMagick 2: http://rmagick.rubyforge.org/rmagick2.html