Spaces:
Sleeping
Sleeping
Create scrpt.py
Browse files- app2/scrpt.py +9 -0
app2/scrpt.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import time
|
| 2 |
+
import os
|
| 3 |
+
|
| 4 |
+
print("Script started")
|
| 5 |
+
open("/tmp/healthy", "w").close() # Create a file to indicate the script is running
|
| 6 |
+
|
| 7 |
+
while True:
|
| 8 |
+
print("Script is running")
|
| 9 |
+
time.sleep(60)
|