- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Mailing sys$input as file
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
11-18-2004 07:14 AM
11-18-2004 07:14 AM
I tried along the lines of
$ pipe dire/sinc=date/sec || mail sys$input "user@email.com"
I would appreciate any advice, pipe always give me problems.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2004 07:36 AM
11-18-2004 07:36 AM
SolutionThis works for me:
$ pipe dir *.exe | mail sys$pipe hein
Enter your message below. Press CTRL/Z when complete, or CTRL/C to quit:
New mail on node XXXX from XXXX::HEIN
Not sure how to supress that 'enter message line'
I think you would need to go into an intermediate temp file (hint: f$unique) for that.
fwiw,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2004 08:25 AM
11-18-2004 08:25 AM
Re: Mailing sys$input as file
You haven't said what does or doesn't happen with your attempted command? It might be the difference between "SYS$INPUT" and "SYS$PIPE". In some cases they're interchangeable, in others they're not. I recommend always using SYS$PIPE to refer to pipelined I/O.
(However in my tests, both SYS$PIPE and SYS$INPUT work in this instance)
To supress the "Enter your message" line, use I/O redirection:
$ PIPE DIRECTORY | MAIL SYS$PIPE user > NL:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2004 08:29 AM
11-18-2004 08:29 AM
Re: Mailing sys$input as file
Doh! Just noticed you have TWO pipe characters between your directory command and MAIL. So, you're piping the output of DIRECTORY into a process with no command, and you're sending an EOF (ie: no data) into MAIL. So the output ends up on the terminal and MAIL doesn't do anything.
Drop back to ONE "|" character and it should work. (I still recommend replacing SYS$INPUT with SYS$PIPE for clarity).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2004 08:35 AM
11-18-2004 08:35 AM