procmail
[Top] [All Lists]

Re: status of clones

1999-09-23 18:30:49
"David W. Tamkin" <dattier(_at_)Mcs(_dot_)Net> writes:
Philip Guenther wrote,

| That's the problem with cloned children: there's no easy way for them
| to report their status to the parent.

Does this do any good?

:0cw:lockfile_for_clone
* conditions_for_clone
{
 code of clone
}
:0e
action_if_clone_failed

Okay, so the only easy way to report the status from a clone is to use
the obvious syntax.  You're right David, that works just fine.  You don't
even need the lockfile, just the 'w' and 'c' flags, and $? will contain
the exit status of the clone.


Philip Guenther

<Prev in Thread] Current Thread [Next in Thread>