Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
nateraw
/
run-script-in-background
like
2
Sleeping
App
Files
Files
Community
1
Fetching metadata from the HF Docker repository...
b3a4bd4
run-script-in-background
/
start_server.sh
nateraw
Update start_server.sh
97cef1c
almost 3 years ago
raw
Copy download link
history
blame
Safe
196 Bytes
#!/bin/bash
# Start the python script in the background asynchronously
nohup
python your_script.py &
export
USER_SCRIPT_PID=$!
# Start a simple web server on port 5000
python status_checker.py