#!/bin/sh pkill honk nohup ./honk & pid="$(pgrep honk)" printf 'honk pid: %s' "$pid"