On Sun, 31 Aug 2014 17:37:50 -0600,
LuKreme <krem...@kreme.com> wrote:

Ian> xargs (the GNU one at least) has an option to not run the inferior
Ian> when there are no args to give it.

LuKreme> The interior is the find:

_Inferior_ which is GNU speak for "subprocess".  I should have tried to
be less concise :-)

> sa-learn --ham -u ${i} `find /home/${i}/Maildir/.notspam -type f -mtime -7`

find /home/${i}/Maildir/.notspam -type f -mtime -7 | xargs -r sa-learn --ham -u 
${i}

LuKreme> (FreeBSD xargs never runs the command if the input is empty)

You may not need -r then.

-- 
Please *no* private copies of mailing list or newsgroup messages.
Local Variables:
mode:claws-external
End:

Reply via email to