Sha256: 3e91f315f28511acd2577fc218f1eaace0f2c5d366bbe489c164ca73bc7555ce
Contents?: true
Size: 471 Bytes
Versions: 10
Compression:
Stored size: 471 Bytes
Contents
def playscript nametext = "%s" % [@a_scriptcmd] begin # exception trapped block fileName = "scripts/" + 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
Version data entries
10 entries across 10 versions & 2 rubygems