HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problem with elm subject line
Operating System - HP-UX
1833784
Members
4555
Online
110063
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
08-29-2001 04:42 AM
08-29-2001 04:42 AM
As an Application programmer I need to mail a file to outlook.
I am using elm command:
elm -s "My Subject Line" user@mailserver.com < myfile
When I do this from command line it?s fine,
but when I do it from the script using variables,
subject=""My Subject Line ""
elm -s ${subject} user@mailserver.com < myfile
elm treats "My Subject Line" as 3 words:
1. "My - it will treat as a subject
2. Subject - it will treat as an address and send email there
3. Line" - it will treat as an address and send email there
Seems like it does not sense double quotes in this case, even though when I do echo " subject is ${subject} " it is quoted!
is there anyway around this problem? May be there is other separators beside " ?
Thanks for help.
Lenny
I am using elm command:
elm -s "My Subject Line" user@mailserver.com < myfile
When I do this from command line it?s fine,
but when I do it from the script using variables,
subject=""My Subject Line ""
elm -s ${subject} user@mailserver.com < myfile
elm treats "My Subject Line" as 3 words:
1. "My - it will treat as a subject
2. Subject - it will treat as an address and send email there
3. Line" - it will treat as an address and send email there
Seems like it does not sense double quotes in this case, even though when I do echo " subject is ${subject} " it is quoted!
is there anyway around this problem? May be there is other separators beside " ?
Thanks for help.
Lenny
There is a way around it!
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2001 04:51 AM
08-29-2001 04:51 AM
Re: Problem with elm subject line
Hi Lenny:
Try this:
# SUBJECT=`"My Subject Line"`
# elm -s "${SUBJECT}" user@mailserver.com < myfile
Regards!
...JRF...
Try this:
# SUBJECT=`"My Subject Line"`
# elm -s "${SUBJECT}" user@mailserver.com < myfile
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2001 11:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2001 04:41 AM
09-05-2001 04:41 AM
Re: Problem with elm subject line
Thanks everybody for your help, single quote around double quotes indeed worked for me.
Lenny
Lenny
There is a way around it!
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
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP