> 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.
- is a pretty standard shorthand for stdin.
At least something to try.
--
Adam Lopresto
http://cec.wustl.edu/~adam/
Where now the horse and the rider? Where is the horn that was blowing?
Where is the helm and the hauberk, and the bright hair flowing?
Where is the hand on the harpstring, and the red fire glowing?
Where is the spring and the harvest and the tall corn growing?
They have passed like rain on the mountain, like a wind in the meadow;
The days have gone down in the West behind the hills into shadow.
Who shall gather the smoke of the dead wood burning,
Or behold the flowing years from the Sea returning?