Skip to content

drinchev/phook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phook

Runs a command after a parent process has finished.

Usage: phook [OPTION]...
Runs a command after a parent process has finished.

With no OPTION provided, will do nothing and exit

Mandatory arguments to long options are mandatory for short options too
  -a, --after=COMMAND        executes command after the parent process has ended
  -e, --execute=COMMAND      executes command on start
  -p, --process=PID          waits for PID to exit instead of parent process
  -h, --help                 display this help and exit
      --version              output version information and exit

Installation

You need macOS for this to work.

wget https://github.com/drinchev/phook/archive/v0.0.8.tar.gz
tar -xzf v0.0.8.tar.gz
cd phook-0.0.8
make install

Alternative option would be to use TheFox's homebrew tap :

brew tap thefox/brewery
brew install phook

Usage

See examples.

Contributors


Credits goes to http://serverfault.com/a/641004/152846


Copyright (C) 2017 Ivan Drinchev.

This software may be modified and distributed under the terms of the MIT license.