brian <[EMAIL PROTECTED]>: > Kevin Mark wrote: > > On Sat, Dec 30, 2006 at 01:49:12PM +0100, Brian wrote: > >> > >> I have a Debian Sarge box and an NSLU2 (Unslung) that I have setup to > >> send me mails when they startup, reboot, and do various other things, > >> they use Nail to sned the emails to me. I tried to setup my mothers PC > > > > try adding some logging to the script at the beginning and the end to a > > a file. > > mailtext.sh > #!/bin/sh > set -x > /bin/logger "/opt/sbin/mailtext Sending "$1" to Brian" > > echo "$2" | nail -v -s Slug1:"$1" [EMAIL PROTECTED] > > That gives plenty of output, just can't figure out a way to capture it yet.
At a command line: script echo "$2" | \ nail -v -s Slug1:"$1" [EMAIL PROTECTED] # <-- replace # $1,2 -- Any technology distinguishable from magic is insufficiently advanced. (*) http://www.spots.ab.ca/~keeling Linux Counter #80292 - - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me. Spammers! http://www.spots.ab.ca/~keeling/emails.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]