def do_wget(reader): term = input.num_input(reader.cfg, "Link") if not term: return try: url = reader.links[term][1] except: reader.cfg.log("Invalid link.") return cmd = "wget -P \"" + path + "\" \"%u\"" utility.silentfork(cmd, url, 0, 0)
def help(self): self.cfg.wait_for_pid = utility.silentfork("man canto", "", 1, 0)