CoCalc Public Filestmp / test-idle.sagewsOpen in with one click!
Author: William A. Stein
os.getpid()
17155
a = 10
def now(): print os.popen("date").read() sys.stdout.flush()
while True: now() sleep(5*60)
Wed Apr 20 04:57:45 UTC 2016 Wed Apr 20 05:02:45 UTC 2016 Wed Apr 20 05:07:45 UTC 2016 Wed Apr 20 05:12:45 UTC 2016 Wed Apr 20 05:17:45 UTC 2016 Wed Apr 20 05:22:46 UTC 2016 Wed Apr 20 05:27:46 UTC 2016 Wed Apr 20 05:32:46 UTC 2016 Wed Apr 20 05:37:46 UTC 2016
a
os.getpid()
22707