- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Looking for help:How to let a process write ou...
Operating System - OpenVMS
1752803
Members
5727
Online
108789
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
Go to solution
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
тАО09-12-2006 09:28 PM
тАО09-12-2006 09:28 PM
Re: Looking for help:How to let a process write output to a file?
Thanks John,
I did learn a lot from your reply.
My main objective is to start the process which will do some job (like backup,delete old backups,etc. using function int system(char *string))periodically,and write the execution logs into a disk file.But all I got was neither the job done nor the logs written in the disk file I specified.Someone told me the quotas caused the failure,but I don't know what quotas should I change to make it success.
I did learn a lot from your reply.
My main objective is to start the process which will do some job (like backup,delete old backups,etc. using function int system(char *string))periodically,and write the execution logs into a disk file.But all I got was neither the job done nor the logs written in the disk file I specified.Someone told me the quotas caused the failure,but I don't know what quotas should I change to make it success.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2006 09:35 PM
тАО09-12-2006 09:35 PM
Re: Looking for help:How to let a process write output to a file?
Z.K.,
you could try http://vms.pdv-systeme.de/users/martinv/quota_monitor.com to watch the process quotas, to find the one that eventually hits the ceiling.
HTH,
Martin
you could try http://vms.pdv-systeme.de/users/martinv/quota_monitor.com to watch the process quotas, to find the one that eventually hits the ceiling.
HTH,
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2006 03:10 AM
тАО09-13-2006 03:10 AM
Solution
Quickly scanning the code, I see a main reason why You see nothing:
the process created is running an image and HAS NO CLI (DCL).
So a "system(somecommand);" call simply fails. And if the process which does this is not checking the status and writes a message, nothing is written at all.
You have to create a process running the image
SYS$SYSTEM:LOGINOUT.EXE, and specify as input some DCL command-file which runs your image, and the logfile as sys$output and sys$error.
the process created is running an image and HAS NO CLI (DCL).
So a "system(somecommand);" call simply fails. And if the process which does this is not checking the status and writes a message, nothing is written at all.
You have to create a process running the image
SYS$SYSTEM:LOGINOUT.EXE, and specify as input some DCL command-file which runs your image, and the logfile as sys$output and sys$error.
http://www.mpp.mpg.de/~huber
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2006 01:37 PM
тАО09-13-2006 01:37 PM
Re: Looking for help:How to let a process write output to a file?
Ian,
>> because the C complier naturally aligns structures and the quota structure is not you need
pragma member_alignment save
#pragma nomember_alignment
...
#pragma member_alignment restore
I did specified these lines for the quota structure.
In the "OpenVMS System Services Reference Manual", I found the input parameter specifies an "Equivalence name to be associated with the logical name SYS$INPUT in the
logical name table of the created process".I used to set the "image" parameter for the image I want to start as a process,not sys$system:loginout.exe.
Seems Joseph resolved my question.
Thank John,Ian,Martin and Joseph!
Thank everyone!
>> because the C complier naturally aligns structures and the quota structure is not you need
pragma member_alignment save
#pragma nomember_alignment
...
#pragma member_alignment restore
I did specified these lines for the quota structure.
In the "OpenVMS System Services Reference Manual", I found the input parameter specifies an "Equivalence name to be associated with the logical name SYS$INPUT in the
logical name table of the created process".I used to set the "image" parameter for the image I want to start as a process,not sys$system:loginout.exe.
Seems Joseph resolved my question.
Thank John,Ian,Martin and Joseph!
Thank everyone!
- « Previous
-
- 1
- 2
- Next »
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