Do you want to run a program directly after some other process has ended? Use
"pwait pid && new_program"

-- Lars Engels <[email protected]>

@fbfortune pidwait on Linux IIUC! Cool tool! I never knew this existed and had a small script for that purpose myself...
@fbfortune Or "waitpid <pid> && new_program" for those on Linux.