fork, wait for pid, exec something when pid is dead
C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
waitandexec.c

README.md

waitandexec

Wait for pid, exec something when pid is dead.

Usage

Execute from your command:

waitandexec <pid> <program> [arg1] [arg2] [argN]

This will go background and wait for desired pid to die. After that selected program will start with passed arguments.

Authors