> Hi Richard,
> 
> Richard L. Hamilton wrote:
> > Appreciate your kind words.  I guess my concerns
> are twofold:
> > * that cron be controllable enough for safe(r)
> large-scale use
> > * that cron be more monitorable if in large-scale
> use
> 
> Yupp, I got that.
> 
> > pid=$(ptree $(pgrep cron)|read parent junk;echo
> $parent)
> 
> This is fine in ksh, but not in bash as this depends
> on how reading from a pipe 
> is implemented.

One more set of parens seems to make it work either way:
pid=$(ptree $(pgrep cron)|(read parent junk;echo $parent) )

That means another process, but at least it's a fork without an exec, and
one process instead of two (head and cut).
-- 
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to