Skip to content
forked from e-zk/after

after the specified process exists, echo a string to stdout. (OpenBSD).

License

Notifications You must be signed in to change notification settings

netzbasis/after

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

after
=====

After the specified process dies, echo a string. (OpenBSD specific).

Usage
-----

	after [-h] [-v] [-p pid | -n process_name] -e string

The process to watch is specified `-p pid' or `-n process_name'. After this
process dies the string specified by `-e string' will be printed to standard
output.

Examples
--------

The following are some examples to illustrate how after can be useful (or not).

Notify yourself when your build is done:

	$ after -n gcc -e "build is done!"

The power of this simple tool can be observed when it is piped into other
programs. For example, putting your machine to sleep after your update jobs
finish:

	$ after -p 2027 -e "doas zzz" | sh

About

after the specified process exists, echo a string to stdout. (OpenBSD).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 62.5%
  • Roff 31.1%
  • Makefile 6.4%