def playscript nametext = "%s" % [@a_scriptcmd] begin # exception trapped block fileName = $shellscript_directory + "/" + nametext + ".sh" fd = File.open(fileName,"r") commandtext = fd.read fd.close @playscript_display = `#{commandtext}` rescue SystemCallError, StandardError $stderr.print "system call error: " + $! end # exception rescue end