From: Ryan Davis Date: 2011-10-06T04:38:41+09:00 Subject: Re: after gem released v 0.8.1 On Oct 5, 2011, at 10:49 , Roger Pack wrote: >>> After includes the "after" command line utility >>> which allows one to wait until a process in another terminal >>> window ends before starting one locally. >> >> How is this different from unix's `wait`? > > I believe the wait command can only wait for child processes (correct me > if I'm wrong). > > So "after" allows this. If this is the case then it also allows you to > not have to interrupt a running process to be able join on it to run a > command after it completes. It also allows you to "wait" from a > separate terminal window, if that's convenient. Sometimes it is, if you > have flashing alerts setup or the like, and want to know when it's > progressing from one to the next. > It's also compatible with windows native processes, which was it's > original motivation. > I don't reach for it too often in Linux (though occasionally I do), but > do use it all the time in windows, which has fewer options available :) 10000 % help wait wait: wait [n] Wait for the specified process and report its termination status. If N is not given, all currently active child processes are waited for, and the return code is zero. N may be a process ID or a job specification; if a job spec is given, all processes in the job's pipeline are waited for.