Simple commandline tool that exits after another program closes
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
.travis.yml
LICENSE
README.md
Setup.hs
after.cabal
stack.yaml

README.md

After

Travis CI build status

Simple program that will exit when another program exits (by polling /proc).

It makes it easy to retroactively schedule a command after another command has started (without using Ctrl-Z, fg; new command)

Usage

sleep 1m &
after sleep; echo Done sleeping

with --pid you can also use the pid:

sleep 20 & BG=$!
after --pid $BG; echo Done sleeping