Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
nateraw
/
run-script-in-background
like
2
Sleeping
App
Files
Files
Community
1
2b046ab
run-script-in-background
/
start_server.sh
nateraw
Update start_server.sh
97cef1c
over 1 year ago
raw
Copy download link
history
blame
No virus
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