- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: script that show it the results (pml) in stand...
Operating System - OpenVMS
1752579
Members
3159
Online
108788
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
тАО08-20-2009 12:53 PM
тАО08-20-2009 12:53 PM
script that show it the results (pml) in standar output.
Dear friends, thanks for everything. I really appreciate your effort for help me.
At this moment, I have the little script and It running fine, but I don`t want create a pml file or temporal files, just I want what the result show it in the standar output to may running other command in a unix server (for example: rsh)
I hope that you are fine and excuse me if my english not is very well.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2009 02:02 PM
тАО08-20-2009 02:02 PM
Re: script that show it the results (pml) in standar output.
Cidjulio,
I did not follow the other topics on the subject so I may be missing the point here.
With that said, some observations:
- you can get rid of the temp file with a simple '$ delete 'pml_script'; after the pml command. Optionally add /LOG
- you can see the output on sys$output (stdout) by using a $ TYPE zalida.txt
after the PML command. And you may want to delete that output file after the type.
- but why not, just NOT specifying the output file, or explicitly sending that directly to sys$output: ?
- Assigning SYS$OUTPUT to NL: always worries me... what if the program wants to tell me something useful, for example why it can not work?
Finally, if you you a temp file, please consider putting it's name in a variable as a first step, not a middle step, and after that first step always use the variable, and never the string constant.
So for the example the critical lines become:
$ pml_script = "za.pml"
$ create 'pml_script'
$ open /write /error=SEND_PML PMLFILE 'pml_script'
:
$ delete 'pml_script';/log
Ditto for the output file (if that is needed):
$ pml_output = "zalida.txt"
:
$ write PMLFILE "ENABLE OUTPUT /FILE=" + pml_output
:
$pml ...
$type 'pml_output'
$delete 'pml_output';
Good luck!
Hein.
I did not follow the other topics on the subject so I may be missing the point here.
With that said, some observations:
- you can get rid of the temp file with a simple '$ delete 'pml_script'; after the pml command. Optionally add /LOG
- you can see the output on sys$output (stdout) by using a $ TYPE zalida.txt
after the PML command. And you may want to delete that output file after the type.
- but why not, just NOT specifying the output file, or explicitly sending that directly to sys$output: ?
- Assigning SYS$OUTPUT to NL: always worries me... what if the program wants to tell me something useful, for example why it can not work?
Finally, if you you a temp file, please consider putting it's name in a variable as a first step, not a middle step, and after that first step always use the variable, and never the string constant.
So for the example the critical lines become:
$ pml_script = "za.pml"
$ create 'pml_script'
$ open /write /error=SEND_PML PMLFILE 'pml_script'
:
$ delete 'pml_script';/log
Ditto for the output file (if that is needed):
$ pml_output = "zalida.txt"
:
$ write PMLFILE "ENABLE OUTPUT /FILE=" + pml_output
:
$pml ...
$type 'pml_output'
$delete 'pml_output';
Good luck!
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2009 07:53 AM
тАО08-21-2009 07:53 AM
Re: script that show it the results (pml) in standar output.
Thanks for everything my dear Hein van den Heuvel.
Buautiful day!!
Buautiful day!!
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