- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: mailx without body
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
09-21-2000 07:05 PM
09-21-2000 07:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2000 07:17 PM
09-21-2000 07:17 PM
Re: mailx without body
mailx -s "Subject if you want" receipient
.
(that is a period on a line by itself)
I am curious, why would you want to send a mail with a null body?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2000 07:26 PM
09-21-2000 07:26 PM
Re: mailx without body
Thanks for your advise.
My pkg in MC/SG is unstable, it halted and never fail over for a few times. Instead of waiting the users to initiate the compliant, it will be good to have a simple script to monitor (ease of maintenance) the status of the pkg. Hope to get inform thro mail when it is down.
Rgds,
YC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2000 07:32 PM
09-21-2000 07:32 PM
Re: mailx without body
It works in the command line but not in a script. Any changes require for scripting ?
Rgds,
YC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2000 07:36 PM
09-21-2000 07:36 PM
Re: mailx without body
Good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2000 07:39 PM
09-21-2000 07:39 PM
Re: mailx without body
echo .\n | mailx -s "test 2" arthiak
that is echo period backslash n
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2000 07:42 PM
09-21-2000 07:42 PM
Re: mailx without body
n a script, use
echo .\n | mailx -s "subject if you want" recepient
that is echo period backslash n
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2000 07:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2000 07:58 PM
09-21-2000 07:58 PM
Re: mailx without body
It works, I really appreciate your time for solving my problem.
Would you like to advise why I can't use the exact syntax from the command line in the script ?
You were saying using a pager to get inform, I have actually think of this as well. It didn't kick off because I am no good in scripting. Would you like to share about how this can be done ?
Thanks,
YC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2000 08:11 PM
09-21-2000 08:11 PM
Re: mailx without body
Yes I have a server configured that constantly probes another one (its called from within cron every 5 minutes) I configured a script to use the cu command ( do a man on cu) I will have to post parts of the script later - its on another machine that I cannot reach right now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2000 06:53 AM
10-19-2000 06:53 AM
Re: mailx without body
The attached script can be used to send a numeric page to a numeric pager. You can call it from another script that monitors daemons and server health etc.
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2000 07:06 AM
10-23-2000 07:06 AM
Re: mailx without body
Hope following line syntax will work in script.
mailx -s "subject" receipient < /dev/null
Thanks & regards,
Jeganathan