Greetings!

I have a little script that looks like below, that emails me info on my zfs 
pool every day:

--- start script ---
message=`/usr/sbin/zfs list -r tank`
echo "Subject: filez ZFS Information\n\n"$message | mail fi...@nebol.se
--- end script ---

My problem is that when I view the mail in Thunderbird there are no newlines so 
it looks like this:

NAME USED AVAIL REFER MOUNTPOINT tank 4.93T 419G 64.3K /tank tank/toolz 86.5G 
419G 86.5G /tank/toolz tank/backups 256G 419G 256G tank/database 78.7M 419G 
78.7M /database tank/dokument 607G 419G 607G /tank/dokument tank/emul 142G 419G 
142G tank/logs 28.4K  etc etc..

Impossible to read.. how can I add newlines to the email? I imagine/hope it's a 
simple thing for you script-people... :)

Best regard,
Gigantex.
-- 
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to