9 lines
190 B
Bash
9 lines
190 B
Bash
#!/bin/bash
|
|
PID=$(pgrep -f 'python.*main.py')
|
|
echo "PID: $PID"
|
|
if [ -n "$PID" ]; then
|
|
/home/fabian/ComfyUI/venv/bin/py-spy dump --pid $PID 2>&1 | head -25
|
|
else
|
|
echo "NOT RUNNING"
|
|
fi
|