# Given the script name determine the path of the wiki file with the usage info.
def wiki_path
- path = ENV["BP_DIR"] + "/bp_usage/" + File.basename(@script_path, ".rb") + ".wiki"
+ path = ENV["BP_DIR"] + "/bp_usage/" + File.basename(@script_path) + ".wiki"
raise "No such wiki file: #{path}" unless File.file? path
path
end
def log(exit_status)
time1 = Time.new.strftime("%Y-%m-%d %X")
user = ENV["USER"]
- script = File.basename($0, ".rb")
+ script = File.basename($0)
stream = File.open(path)
time0, args, tmp_dir = stream.first.split(";")
# Path to status file
def path
user = ENV["USER"]
- script = File.basename($0, ".rb")
+ script = File.basename($0)
pid = $$
path = ENV["BP_TMP"] + "/" + [user, script, pid, "status"].join(".")
end