- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Again need help in scripting
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
Forums
Discussions
Discussions
Discussions
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
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
03-11-2011 10:52 AM
03-11-2011 10:52 AM
I want to create a script which will send an email with the log attached to our client and I have created the same successfully as well.
Please find it attached.
It will first go to that directory.
It will then check the date so that it should take latest log.
Then it will check the content and send an email.
However The issue which I am facing is that this log is very lengthy. I want it to attach it in a notepad and then send it in an email.
Is it possible?
If yes how will I be doing that?
Please have a look at the script attached.
waiting for respone :)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2011 10:54 AM
03-11-2011 10:54 AM
Solutionhttp://hpux.ws/mailfile2
Part of http://hpux.ws/
This script will email any attachment any email address.
Tested on
RHEL 5.x
HP-UX 11-11iv3
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
03-11-2011 11:06 AM
03-11-2011 11:06 AM
Re: Again need help in scripting
I am beginner at scripting.
It seems you are a genius in reating scripts.
is there an easy wayto do it?
I just want to send a log file attached in a notepad.
Is there an easy way for it?
I just attached script which I have created.
Would you be so kind to have a look at it once?
any modifications to that script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2011 07:23 PM
03-11-2011 07:23 PM
Re: Again need help in scripting
Your script just includes that log in the body of your message.
You need to glue SEP's script into your framework.
You might want to rename your file to temp.txt so that when you attach it, it has the right suffix. (And you may want to remove that temporary file after you mail it.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2011 07:40 PM - last edited on 08-04-2011 11:03 AM by Kevin_Paul
03-11-2011 07:40 PM - last edited on 08-04-2011 11:03 AM by Kevin_Paul
Re: Again need help in scripting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2011 08:08 AM - last edited on 08-04-2011 11:04 AM by Kevin_Paul
03-12-2011 08:08 AM - last edited on 08-04-2011 11:04 AM by Kevin_Paul
Re: Again need help in scripting
Hi:
Dave La Mar posted a short series of tips for sending mail attachments in this thread:
http://h30499.www3.hp.com/t5/Messaging/mailx-send-an-email-with-a-file-attachment/m-p/3832040#M3301
Look at Dave's attachment therein.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2011 08:29 AM
03-12-2011 08:29 AM
Re: Again need help in scripting
I have answers for everything now...
Thanks to all who have provided support in this regards.
and Please see my latest script which is working fine :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2011 09:05 AM
03-12-2011 09:05 AM