Pastebin

Paste #1582: python

< previous paste - next paste>

Pasted by tdn

Download View as text

    def log(self, msg):
        self.print_note(msg)

    def system(self, cmd):
        retval, stdout, stderr = spye.proc_capture(cmd)
        if not retval:
            return "\n".join(stdout)
        else:
            return "\n".join(stderr)

    self.log("Running processes: %s" % self.system(["ps", "faux"]))

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.