On Sunday 27 April 2008 22:03, Colin McKinnon wrote:
> On Friday 25 April 2008 12:25, Roland Ward wrote:
<snip>

...and I forgot to mention - you could just invoke it over ssh:

#!/bin/bash
{ 
date
;
echo text to send 
;
ls -ld /tmp
} | ssh [EMAIL PROTECTED] "mailx -s 'permissions cock up again' [EMAIL 
PROTECTED]"

(assuming you've got a key pair setup of course)

C.

_______________________________________________
Scottish mailing list
[email protected]
https://mailman.lug.org.uk/mailman/listinfo/scottish

Reply via email to