Download bt-source/panel/class/btdockerModel/test/runCmdTest.py from SZFSPC/apple: direct link, hf CLI and curl.
- Browser
- Download file 243 Bytes
-
https://huggingface.co/spaces/SZFSPC/apple/resolve/main/bt-source/panel/class/btdockerModel/test/runCmdTest.py
- Command line
-
hf download hf://spaces/SZFSPC/apple/bt-source/panel/class/btdockerModel/test/runCmdTest.py
-
curl -L -o runCmdTest.py https://huggingface.co/spaces/SZFSPC/apple/resolve/main/bt-source/panel/class/btdockerModel/test/runCmdTest.py
243 Bytes
| import time | |
| # 每秒往文件中写入一条数据,模拟测试 | |
| _rCmd_log = '/tmp/dockerRun.log' | |
| while True: | |
| with open(_rCmd_log, 'a+') as f: | |
| f.write(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + '\n') | |
| time.sleep(1) |