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
b3a4bd4
run-script-in-background
/
start_server.sh
nateraw
Update start_server.sh
97cef1c
over 1 year 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