- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: .forward to execute some script
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
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
04-07-2005 10:40 PM
04-07-2005 10:40 PM
.forward to execute some script
I have to execute some script when I receive a mail in HP-UX mbox. I sit possible through .forward file ?
Thanks in advance !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 10:44 PM
04-07-2005 10:44 PM
Re: .forward to execute some script
Start your .forward file with a | (pipe).
Also have a look at "man 5 aliases"
Regards,
Rik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 10:49 PM
04-07-2005 10:49 PM
Re: .forward to execute some script
You can use the redirector a.k.a pipe ( | )
For eg:
250 <"|/opt/majordomo/wrapper resend -l primary -h hpuxmail.xyz.hp.com primary-ooing"@hpuxmail.cup.xyz.com>
Regards,
Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 10:54 PM
04-07-2005 10:54 PM
Re: .forward to execute some script
Thanks for your quick reply.
I didn't get you properly. I want to execute a script /opt/test/services.sh as soons as mail reaches the system from outside world.
Many Thanks
Pramod
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 11:01 PM
04-07-2005 11:01 PM
Re: .forward to execute some script
Example:
unix_mail_username : "/opt/test/script.sh",/var/mail/unix_mail_username
Regards,
Anthony