CoCalc Public Filestmp / a.txtOpen in with one click!
Author: William A. Stein
1
︠db07c227-8ec2-4c6d-b2ab-801b8ff8c2ees︠
2
os.getpid()
3
︡b8f34a41-372d-453d-9c10-88f98b2dec49︡︡{"stdout":"17155\n"}︡{"done":true}
4
︠861fea45-f737-44f0-b58d-e8ffd71513dfs︠
5
a = 10asdf
6
7
adsf
8
lkasdjfklajsdf
9
10
︡0c5e4436-6b0b-44be-8f5c-aa00e3b2734f︡︡{"done":true}
11
︠6cf84b03-a61d-4f07-9d4e-24fdd8bf0d90s︠
12
def now():
13
print os.popen("date").read()
14
sys.stdout.flush()
15
︡8fb8f0ae-0697-4b26-99df-848660390c80︡︡{"done":true}
16
︠ce917b76-74f1-4f38-a8ef-3cd4e71838a7r︠
17
while True:
18
now()
19
sleep(5*60)
20
︡85a431d7-8f5b-42e3-a8c0-042ffacbd622︡{"stdout":"Wed Apr 20 04:57:45 UTC 2016\n\n"}︡{"stdout":"Wed Apr 20 05:02:45 UTC 2016\n"}︡{"stdout":"\n"}︡{"stdout":"Wed Apr 20 05:07:45 UTC 2016\n"}︡{"stdout":"\n"}︡{"stdout":"Wed Apr 20 05:12:45 UTC 2016\n"}︡{"stdout":"\n"}︡{"stdout":"Wed Apr 20 05:17:45 UTC 2016\n"}︡{"stdout":"\n"}︡{"stdout":"Wed Apr 20 05:22:46 UTC 2016\n"}︡{"stdout":"\n"}︡{"stdout":"Wed Apr 20 05:27:46 UTC 2016\n"}︡{"stdout":"\n"}︡{"stdout":"Wed Apr 20 05:32:46 UTC 2016\n"}︡{"stdout":"\n"}︡{"stdout":"Wed Apr 20 05:37:46 UTC 2016\n"}︡{"stdout":"\n"}︡
21
︠31330866-2212-4ad0-9347-91a285b3ebfa︠
22
23
︡1c075945-1b87-485b-902c-cd05dc0f9bbc︡
24
︠d5ceae5c-9879-4c0b-8fab-83a3af5c74f2s︠
25
a
26
︡ac0fd46f-04f6-4e38-ad85-405a9eec7862︡
27
︠94c941b4-3c8f-47bf-a193-402f40b1efc3s︠
28
29
os.getpid()
30
︡9e51db79-64c0-4591-bfd3-0ef951725ab9︡︡{"stdout":"22707\n"}︡{"done":true}
31
︠96f088d7-6ab1-480f-9bb1-dabb383ff983︠
32
33
34
35
36
37
38
39
40
41