Good afternoon, Adam,
On Thu, 5 Feb 2004, Adam D. Lopresto wrote:
> > Usually I call
> > sa-learn --spam --mbox spammybox
> > but to do the same on remote machines I'd like to do
> > cat spammybox | ssh server "sa-learn --spam --mbox"
> >
> > But sa-learn only spits perl-errors in that case.
> >
> > This doesn't:
> > cat spammybox | ssh server "sa-learn --spam"
> > but sa-learn thinks the whole mbox is just ONE message.
> >
> > Is that a bug or a feature or am I missing something? :-)
>
> Have you tried
>
> cat spammybox | ssh server "sa-learn --spam --mbox -"
>
> I tried it locally (sa-learn --spam --mbox - < spammybox) and it worked fine.
Have you tried it with the exact "cat spammybox | ... --mbox -"
you mentioned above?
> - is a pretty standard shorthand for stdin.
If a Unix tool _chooses_ to implement that functionality, I agree
that's the most common syntax for it.
Cheers,
- Bill
---------------------------------------------------------------------------
"Tatu Ylonen was given public awards & wined & dined by the
Finnish government for making ssh available to the world. Phil
Zimmerman got a prison-term-commuted-to-community-service for doing the
same with PGP. There is **NO** doubt that US government laws, PAST and
PRESENT, HAVE hindered the development, commercialization and sales of
cryptographic software."
-- Duncan Napier <[EMAIL PROTECTED]>
--------------------------------------------------------------------------
William Stearns ([EMAIL PROTECTED]). Mason, Buildkernel, freedups, p0f,
rsync-backup, ssh-keyinstall, dns-check, more at: http://www.stearns.org
--------------------------------------------------------------------------