On Thu, 22 Jan 2009 12:41:14 -0800
Nerius Landys <nlan...@gmail.com> wrote:


> /usr/local/bin/java PipeGenerator $* &
> sleep 1
> <kill the java command if not already killed>
> 
> Also with the above code I would be waiting for 1 second even if the
> java process finished sooner.  But that is a penalty I'm willing to
> pay, unless there is a more elegant solution.

sleep 1 && <kill the java command> &

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to