Date: Sun, 31 May 2009 20:42:57 +0100 From: Chris Rees <utisoft@googlemail.com> To: Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl> Cc: Kelly Jones <kelly.terry.jones@gmail.com>, freebsd-questions@freebsd.org Subject: Re: Waiting for a process to die Message-ID: <b79ecaef0905311242s18575b87gb11802c3421f857e@mail.gmail.com> In-Reply-To: <alpine.BSF.2.00.0905312138240.25771@wojtek.tensor.gdynia.pl> References: <26face530905311117te38a4faya92733fbfebd9597@mail.gmail.com> <alpine.BSF.2.00.0905312138240.25771@wojtek.tensor.gdynia.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
2009/5/31 Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>: > >> How do I wait for a specific process to die? I want to do something like: >> >> waitpid 1234&&(echo "done!" | Mail -s "PROC DONE" >> kelly.terry.jones@gmail.com) > > if i understand you correctly: > > your_program parameters & > bg_process_number=$! > > ...something else... > > wait $bg_process_number > echo "done!" > > Er, yeah, actually a much better idea than mine. Ignore my previous suggestion :) Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b79ecaef0905311242s18575b87gb11802c3421f857e>