1
0
mirror of https://github.com/mortdeus/legacy-cc.git synced 2026-10-10 04:41:38 +00:00
Files
mortdeus_legacy-cc/#_sniper (Rust) using jito Shred stream/run.sh
cryptoking1106 086ec82844 init
2025-09-18 18:12:50 -03:00

21 lines
593 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
set -euo pipefail
# ─── 1) jump to script’s own dir ───
cd "$(dirname "$0")"
# ─── 2) build in release (skips if up-to-date) ───
cargo build --release
# ─── 3) where our binary really lives ───
BIN="$(pwd)/target/release/grpc-raydium-pool-monitoring-rust"
# ─── 4) if PIN_CORES is set, pin there; otherwise run normally ───
if [[ -n "${PIN_CORES:-}" ]]; then
echo "📌 pinning to cores: $PIN_CORES"
exec taskset -c "$PIN_CORES" "$BIN" "$@"
else
echo "▶️ running on all available cores"
exec "$BIN" "$@"
fi