[linux] posielanie suborov z terminalu

Ernest Beinrohr Ernest.Beinrohr na axonpro.sk
Čtvrtek Září 24 14:55:23 CEST 2009


function send_attachment() { echo "Emailing: $1" | mutt -s "Emailing: 
$1" -a $1 $2; }

function send_attachment_gz() { TMPFILE="`mktemp -d`/`basename $1`.gz"; 
gzip -9 < $1 > $TMPFILE; echo "Emailing: $1" | mutt -s "Emailing: $1" -a 
$TMPFILE $2; }

pouzitie: *send_attachment_gz /var/log/tomcat55/worklick2.log 
zdeno na axonpro.sk*


-- 
Ing <http://www.beinrohr.sk/ing.php>, RHCE 
<http://www.beinrohr.sk/rhce.php>, LPIC 
<http://www.beinrohr.sk/lpic.php>, +421-2--6241-0360 
<callto://+421-2--6241-0360>, +421-903--482-603 <callto://+421-903--482-603>
icq:28153343, skype:oernii-work <callto://oernii-work>, 
jabber:oernii na jabber.org
------------------------------------------------------------------------
Bender: Listen up, cause I got a climactic speech.
------------- další část ---------------
HTML příloha byla odstraněna...
URL: <http://lists.linux.sk/pipermail/linux/attachments/20090924/e56db851/attachment.html>


Další informace o konferenci linux