Created
January 9, 2025 00:22
-
-
Save hiropppe/cfb91d8bef9622071b7cd5cdc6886706 to your computer and use it in GitHub Desktop.
シェルメモ:nohup で実行するコマンドを time したいとき
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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