Ubuntu Pastebin

Paste from ubuntu at Fri, 20 May 2016 15:44:19 +0000

Download as text
1
2
3
4
5
6
7
8
9
if __name__ == '__main__':
    import sys
    with open("/run/cloud-init/main.log", "a") as fp:
        with open("/proc/uptime", "r") as ufp:
            uptime = ufp.read()
        msg = "%s: %s\n" % (uptime, ' '.join(sys.argv))
        fp.write(msg)
        print(msg)
    sys.exit(main())
Download as text