This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Failed to load latest commit information.
AFTER(1) General Commands Manual AFTER(1) NAME after - after process dies echo a string to standard output SYNOPSIS after [-h] [-v] [-p pid | -n program_name] -e string DESCRIPTION after watches the process list for the given pid or program_name. When the process is no longer in the process list after outputs -e string to standard output. If both pid and program_name are specified after will default to watching the process specified by program_name. In the case of using program_name if there are multiple programs with this name running all of them will have to exit before after will echo string. OPTIONS -p pid Watch pid. -n program_name Watch program_name. -h Show usage information. -v Be verbose. EXAMPLES Following are some examples to illustrate how after could be useful (or not). Notify when your compiler has finished running: $ after -n clang -e "build is finished!" The power of this simple tool can be observed when the output is piped into other programs. For instance; putting your machine to sleep after your update script has finished running: $ after -p 2027 -e "doas zzz" | sh SEE ALSO kvm_getprocs(3), kvm_open(3) OpenBSD 6.8 January 5, 2021 OpenBSD 6.8