def playrubyscript nametext = "%s" % [@a_rubyscriptcmd] begin # exception trapped block fileName = $shellscript_directory + "/" + nametext + ".rb" rubyfile_contents = File.read( fileName) temp = eval( rubyfile_contents) rescue SystemCallError, StandardError $stderr.print "system call error: " + $! end # exception rescue end