-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
maybe you need to tweak your codes to something like this uuencode $1 $1.txt | mail $2 and by the way, uuencode doesn't work as expected on some MTA's like sylpheed. It will display on some MTA's as garbage. There's a tool called "mpack" which works fine on famous MTA's like Outlook, Syl[heed, kmail etc. just search google on where to get this package Hope this helps - --> jon noong nakaraang Thu, 18 Sep 2003 03:01:24 -0400 si "Tapang, Roderick (GXS)" <[EMAIL PROTECTED]> ay sumulat ng ganito: > hi gurus, > > i have a small ksh script that sends a file as an > attachment. how do i eliminate the portion where it writes > a file on the disk just to add the .txt extension? > > here is the current: > # > ##### > if [ $# != 2 ] || [ ! -a $1 ] > then > print "$USAGE" > exit 1 > fi > > ux2dos $1 | uuencode $1.txt >> temp.txt > mail $2 < temp.txt > ##### > > ex: > file on disk: > > cache/file1 > > target add - [EMAIL PROTECTED]: > > send.sh cache/file1 [EMAIL PROTECTED] > > (will send file1.txt as an attachment) > > thanks! > > erik > > -- > Philippine Linux Users' Group (PLUG) Mailing List > [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph) > Official Website: http://plug.linux.org.ph > Searchable Archives: http://marc.free.net.ph > . > To leave, go to > http://lists.q-linux.com/mailman/listinfo/plug > . > Are you a Linux newbie? To join the newbie list, go to > http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie - -- Gabriel L. Briones III <[EMAIL PROTECTED]> Network Administrator, Solid Electronics Corporation Linux User # 273591 09189269576 - ----------------------------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/aWcdLruFIAIO/acRApCDAKCTexKaqDcR7Ep2eUqoJqLjctQbOACaA8n9 ply92ogOGgGwcn4/zK618Nk= =mniw -----END PGP SIGNATURE----- -- Philippine Linux Users' Group (PLUG) Mailing List [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph) Official Website: http://plug.linux.org.ph Searchable Archives: http://marc.free.net.ph . To leave, go to http://lists.q-linux.com/mailman/listinfo/plug . Are you a Linux newbie? To join the newbie list, go to http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
