HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Undesirable filename for the HTML attachment
Operating System - HP-UX
1825793
Members
2184
Online
109687
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
05-31-2004 02:02 AM
05-31-2004 02:02 AM
Hi all,
When I use the following command in my shell script, the HTML file (attachment) name is the whole path name from root, with underscores instead of "/". My command is
uuencode ${GDB_EXTFILE_ROOT}/Report.html ${GDB_EXTFILE_ROOT}/Report.html | mailx
-s "DAP192 Monthly Guest Direct Mail Campaign Contacts Reporting" `cat ${GDB_SCRIPTS_DIR_N}/${GDB_MAILING_LIST}`
where GDB_EXTFILE_ROOT and GDB_SCRIPTS_DIR_N are parameters which contains the directory names.
GDB_MAILING_LIST is a file that contains the email ids. The full path of the HTML file in test environment is /gdishared/temp/incoming/dap192/data/Report.html. So the HTML file name comes as _gdishared_temp_incoming_dap192_data_Report.html in the email. I want the attachement to be named as Report.html alone. FYI, I cannot remove the parameter GDB_EXTFILE_ROOT. Please let me know your suggestions.
Thank you,
Chandra
When I use the following command in my shell script, the HTML file (attachment) name is the whole path name from root, with underscores instead of "/". My command is
uuencode ${GDB_EXTFILE_ROOT}/Report.html ${GDB_EXTFILE_ROOT}/Report.html | mailx
-s "DAP192 Monthly Guest Direct Mail Campaign Contacts Reporting" `cat ${GDB_SCRIPTS_DIR_N}/${GDB_MAILING_LIST}`
where GDB_EXTFILE_ROOT and GDB_SCRIPTS_DIR_N are parameters which contains the directory names.
GDB_MAILING_LIST is a file that contains the email ids. The full path of the HTML file in test environment is /gdishared/temp/incoming/dap192/data/Report.html. So the HTML file name comes as _gdishared_temp_incoming_dap192_data_Report.html in the email. I want the attachement to be named as Report.html alone. FYI, I cannot remove the parameter GDB_EXTFILE_ROOT. Please let me know your suggestions.
Thank you,
Chandra
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2004 03:20 AM
05-31-2004 03:20 AM
Solution
Hi,
The second argument on the uuencode command specifies the filename of the uuencoded output of the file. What uuencode does is, it inserts the entire text in the second argument as the name of the encoded output and output to the std out.
Therefore, if you modify the second argument to have just the desired filename (Report.html), you should have the desired output.
Try this way,
uuencode ${GDB_EXTFILE_ROOT}/Report.html Report.html | mailx
-s "DAP192 Monthly Guest Direct Mail Campaign Contacts Reporting" `cat ${GDB_SCRIPTS_DIR_N}/${GDB_MAILING_LIST}`
HTH,
Rahman.
The second argument on the uuencode command specifies the filename of the uuencoded output of the file. What uuencode does is, it inserts the entire text in the second argument as the name of the encoded output and output to the std out.
Therefore, if you modify the second argument to have just the desired filename (Report.html), you should have the desired output.
Try this way,
uuencode ${GDB_EXTFILE_ROOT}/Report.html Report.html | mailx
-s "DAP192 Monthly Guest Direct Mail Campaign Contacts Reporting" `cat ${GDB_SCRIPTS_DIR_N}/${GDB_MAILING_LIST}`
HTH,
Rahman.
No unix, no fun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2004 06:35 PM
05-31-2004 06:35 PM
Re: Undesirable filename for the HTML attachment
It works! Thank you.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP