- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- email subject
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
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
тАО02-12-2009 08:08 AM
тАО02-12-2009 08:08 AM
email subject
Below is the content in the file, I am using email notification.
In the email subject I want to send as "DS Purchase Order No: ABCD for Account Number 11111
PURCHASE_ORDER_NO: ABCD
TRADING PARTNER ID: XYZ12345
ACCOUNT#: 11111
PURCHASE ORDER DATE: 20100924
How can I pick the two information from the file and place in the email subject, could you please advise me
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2009 08:09 AM
тАО02-12-2009 08:09 AM
Re: email subject
Here is a script that makes that easy. It also does attachments but you can comment that part of the code.
http://www.hpux.ws/?p=7
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
тАО02-12-2009 08:52 AM
тАО02-12-2009 08:52 AM
Re: email subject
po=`grep "PURCHASE_ORDER_NO:" filename | cut -d: -f 2`
acc=`grep "ACCOUNT#:" filename | cut -d: -f 2`
mailx -s "DS Purchase Order No: $po for Account Number $acc" email.address@domain.com < filename
PS. "I have assigned points to 0 of 37 responses to my questions"
http://forums11.itrc.hp.com/service/forums/helptips.do?#33
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2009 09:27 AM
тАО02-12-2009 09:27 AM
Re: email subject
DROP SHIP PO NO: ABCD ABCD for Acc#: 11111 11111
I want in this formate
DROP SHIP PO NO: ABCD for Acc#: 11111
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2009 04:55 PM
тАО02-12-2009 04:55 PM
Re: email subject
TTr did well. There are no duplicates.
I am not sure who you mean by it.
Here is something similar to TTr's version,
without many blank spaces:
po=`awk '/PURCHASE_ORDER_NO:/ {print $2}' filename`
acc=`awk '/ACCOUNT#:/ {print $2}' filename`
mailx -s "DS Purchase Order No: $po for Account Number $acc" email.address@domain.com < filename
Cheers,
VK2COT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2009 08:03 PM
тАО02-12-2009 08:03 PM
Re: email subject
I am not sure who you mean by it.
This would happen if filename had duplicates.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2009 07:21 AM
тАО02-13-2009 07:21 AM
Re: email subject
That's right. This is the classic case of what happens when you are given a bad sample to work with and/or you are asked the wrong question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2009 12:49 PM
тАО02-16-2009 12:49 PM
Re: email subject
question disappeared in thin air.
No replies, no words of thanks, and no
assigned points.
And his history does not look favourable:
"I have assigned points to 0 of 42 responses"
I was wondering if moderators of the
HP forums could or should put an
administrative lock on users who do not
follow the rules...
VK2COT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2009 01:07 PM
тАО02-16-2009 01:07 PM
Re: email subject
MANY MANY MANY THANKS
I dont know how to assigned Point
could you please tell me
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2009 01:21 PM
тАО02-16-2009 01:21 PM
Re: email subject
Then you just to to your threads and select a point value from the drop down box above each response.
Then you just click "submit points" at the bottom of the thread.