- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- uuencode - mailx attachment
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2006 04:49 AM - last edited on тАО01-27-2012 01:33 AM by Ajay-Kumar
тАО07-05-2006 04:49 AM - last edited on тАО01-27-2012 01:33 AM by Ajay-Kumar
I am trying to send some attachment using the following command:
uuencode /location/file.csv filename.csv|/usr/bin/mailx -s "Subject" $EMAIL
It is sending the email with the attachment but the attachment does not conatin any data.
The file is present in the "location" specified and it contains data.
Please help.
Thanks,
Anand
----------
P.S. This thread has been moved from Operating System --> HP-UX --> Languages & Scripting to Operating System --> HP-UX --> Messaging - Forum Moderator
Solved! Go to Solution.
- Tags:
- attachments
- uuencode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2006 04:54 AM
тАО07-05-2006 04:54 AM
Solutionhttp://www.hpux.ws/mailfile2
Your smtp gateway server is capable of chewing up the attachment and causing this problem.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2006 05:05 AM
тАО07-05-2006 05:05 AM
Re: uuencode - mailx attachment
I am able to send the proper attachment If I execute:
uuencode /location/file.csv filename.csv|/usr/bin/mailx -s "Subject" $EMAIL
from the command line.
It somehow does not seem to work properly from the script.
-Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2006 06:15 AM
тАО07-05-2006 06:15 AM
Re: uuencode - mailx attachment
Check that the user executing the script has read permission for /location/file.csv.
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2006 06:20 AM
тАО07-05-2006 06:20 AM
Re: uuencode - mailx attachment
uuencode /location/file.csv /location/file.csv | mailx -m -s "Subject" $EMAIL
hope it helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2006 06:25 AM
тАО07-05-2006 06:25 AM
Re: uuencode - mailx attachment
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2006 06:31 AM
тАО07-05-2006 06:31 AM
Re: uuencode - mailx attachment
I have found out the issue in my perl script from which I was trying to email the output.
I did not close the filehandler before sending the mail.
I have corrected the issue and it works fine now.
-Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2012 10:00 PM
тАО01-26-2012 10:00 PM
Re: uuencode - mailx attachment
Hi , i have the same problem. im using
uuencode /db01/oraprod/DBTS_270112.html.gz /db01/oraprod/DBTS_270112.html.gz | mailx -m -s "DATABASE" name@foo.com
when i get the email its like this:
begin 644 /db01/oraprod/DBTS_270112.html.gz
M'XL(".L\(D\``T1"5%-?,C<P,3$R+FAT;6P`[=UKCQO'E<;Q]_H4`R\6R+Y(
MI:OZ'D@".#.<T4CDD&)SI+$6"T&VM4D`KYW5.KO(M]^6+S)O2C\Z73-4Q?]?
M$@2.B3AF\+#NYSS\ZOMO_G[RU9^^_O[;[]\]^N)?IN7[?WQQ\O@$P#^+!P\O
M%M?KDXO)V?31%R^FJ_/)]>2+D[/%;+':2'UW]6KZJ"#[0*(.!_VG8._FG:`#
MB6)$!WX#'CS\\SL"#/R3>_#PO]Z\^^^_O7U[TIVM%K/99+ZXN5X_\MG/?WP^
MG4V^[/\P._GJ[9_?_.]?OG_WZ,VW/[Q]]]V;']Y^V,+[^]MOO_W^_Q[_@\G!
M5]_^[>U/\X+R\?ED/3F==-.3_M]FTV[9?[X[64V7B]7ZCR>A_GWF?Q\R'T[^
M>+)<7<TG#__P\__"QP]/5S_^Z]C?&9`<1G3@-^#!C\.DL"&7_>BG#;E_]__A
M^N%V<<X8"R3AP<,?WGSU;3\+__[=-V_?/?(G7_?3\+^^^>:;OWSWIT?AQS_Z
Please advise