1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/bash # set -euC # set -x if [ -f RUNNING_PID ] then kill "$(cat RUNNING_PID)" ||: rm RUNNING_PID fi RUST_LOG=trace ./target/debug/panty collector --stocks 3 --watch /tmp/xmosh & echo "$!" >> RUNNING_PID