- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: redirect sys$output
Operating System - OpenVMS
1753268
Members
5055
Online
108792
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО06-04-2008 04:12 PM
тАО06-04-2008 04:12 PM
redirect sys$output
Dear VMS Users,
I want to do this in VMS: put the output of this command to fileA_diff file. How to achive that?
difference fileA,c fileA_new.c
Thanks,
YE LIU
I want to do this in VMS: put the output of this command to fileA_diff file. How to achive that?
difference fileA,c fileA_new.c
Thanks,
YE LIU
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2008 04:30 PM
тАО06-04-2008 04:30 PM
Re: redirect sys$output
YE,
There are lots of ways to redirect output. For many commands there is a /OUTPUT qualifier to direct output to a file. DIFFERENCE has one, so the simplest answer is:
$ DIFFERENCE/OUTPUT=fileA_diff fileA.c fileA_new.c
For commands that don't have a /OUTPUT qualifier, try:
$ DEFINE/USER SYS$OUTPUT output_file.txt
$ command
or
$ PIPE command > output_file.txt
or (if you want to capture the output of several commands)
$ @TT/OUTPUT=output_file.txt
_$ command
_$ another command
_$ etc...
_$ EXIT
$ TYPE output_file.txt
There are lots of ways to redirect output. For many commands there is a /OUTPUT qualifier to direct output to a file. DIFFERENCE has one, so the simplest answer is:
$ DIFFERENCE/OUTPUT=fileA_diff fileA.c fileA_new.c
For commands that don't have a /OUTPUT qualifier, try:
$ DEFINE/USER SYS$OUTPUT output_file.txt
$ command
or
$ PIPE command > output_file.txt
or (if you want to capture the output of several commands)
$ @TT/OUTPUT=output_file.txt
_$ command
_$ another command
_$ etc...
_$ EXIT
$ TYPE output_file.txt
A crucible of informative mistakes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2008 06:38 PM
тАО06-04-2008 06:38 PM
Re: redirect sys$output
Redirection is a Unix solution, and doesn't work quite the same (or quite as well) on OpenVMS. And it doesn't necessarily lend itself quite as well to Unix-style solutions.
Redirection or the parsing of command output is often not a good solution, though (as mentioned in the previous reply) it is often feasible. Its not good because the formats of the commands can potentially change.
For the DCL command verb in this case, and many others, the command has an /OUTPUT qualifier. DIFFERENCES /OUTPUT. As was mentioned. HELP DIFFERENCES can provide you with substantial information, and most DCL verbs have on-line help text at least on par with and sometimes rather better than man pages.
I'd suggest a quick tour through the OpenVMS User's Guide, as that can provide some insight into how OpenVMS and DCL works.
So what are you up to here with the DIFFERENCES command itself?
Redirection or the parsing of command output is often not a good solution, though (as mentioned in the previous reply) it is often feasible. Its not good because the formats of the commands can potentially change.
For the DCL command verb in this case, and many others, the command has an /OUTPUT qualifier. DIFFERENCES /OUTPUT. As was mentioned. HELP DIFFERENCES can provide you with substantial information, and most DCL verbs have on-line help text at least on par with and sometimes rather better than man pages.
I'd suggest a quick tour through the OpenVMS User's Guide, as that can provide some insight into how OpenVMS and DCL works.
So what are you up to here with the DIFFERENCES command itself?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2008 07:41 AM
тАО06-18-2008 07:41 AM
Re: redirect sys$output
thanks
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP