Skip to content

Instantly share code, notes, and snippets.

@hiropppe
Created January 9, 2025 00:22
Show Gist options
  • Save hiropppe/cfb91d8bef9622071b7cd5cdc6886706 to your computer and use it in GitHub Desktop.
Save hiropppe/cfb91d8bef9622071b7cd5cdc6886706 to your computer and use it in GitHub Desktop.
シェルメモ:nohup で実行するコマンドを time したいとき
bash -c "time (sleep 3 && echo \"zzz..\" && sleep 2 && echo \"woke up\")" 2>&1
$ sh ./test.sh
$ nohup sh ./test.sh &
$ nohup sh ./test.sh > test.log &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment