- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Starting a detached process from the batch que...
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
Discussions
Discussions
Forums
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
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
тАО08-24-2005 02:23 AM
тАО08-24-2005 02:23 AM
Starting a detached process from the batch queue
I'm trying to write a DCL command file which will restart a detached process if it has stopped. I want to use the batch queue so that the check can be performed periodically. When running from the batch queue my command file can detect that the target detached process is not running and can actually restart the process, however the process fails almost immediately. Any suggestions as to why is this happening?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2005 02:25 AM
тАО08-24-2005 02:25 AM
Re: Starting a detached process from the batch queue
Welcome to the VMS forum.
What's the error you're getting? Anything seen in the log file of the batch job?
Please gives us some more info.
Greetz,
Kris (aka Qkcl)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2005 02:41 AM
тАО08-24-2005 02:41 AM
Re: Starting a detached process from the batch queue
%RUN-S-PROC_ID,...
but the process disappears immediately.
If I perform the same command from the DCL prompt the process starts and continues as normal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2005 02:45 AM
тАО08-24-2005 02:45 AM
Re: Starting a detached process from the batch queue
Can you provide the EXACT commands you are using when
it works and when it fails along with the EXACT errors
you get?
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2005 02:47 AM
тАО08-24-2005 02:47 AM
Re: Starting a detached process from the batch queue
You kick of a detached process by specifying either the /UIC or the /DETACHED qualifier is specified with the RUN command and you have the IMPERSONATE priv. You could change the RUN command and add the /OUTPUT=file and the /ERROR=file qualifiers, so that any conditions signalled by the created process are captured.
Greetz,
Kris (aka Qkcl)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2005 03:05 AM
тАО08-24-2005 03:05 AM
Re: Starting a detached process from the batch queue
welcome to VMS forum.
Batch queue can run a detached process: there are no limitation about this feature. Like you I use batch command to check and restart some detached processes.
I guess, you forgot SET DEFAULT command or something like this. Don't forget, batch command may have different login environment.
Antonio Vigliotti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2005 03:16 AM
тАО08-24-2005 03:16 AM
Re: Starting a detached process from the batch queue
RUN/PROCESS=processname/DETACHED/OUTPUT=output.log process.exe
I have now included /error=error.log and get the following error:
%SYSTEM-F-ACCVIO, access violation, reason mask=04, ...
Perhaps this is more useful information?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2005 03:21 AM
тАО08-24-2005 03:21 AM
Re: Starting a detached process from the batch queue
$ ACCOUNT /FU/ID=... ACCOUNTNG
Check for the final status code/text.
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2005 03:22 AM
тАО08-24-2005 03:22 AM
Re: Starting a detached process from the batch queue
One possibility is that the process is getting started with insufficient quotas and is running out of something leading to the ACCVIO.
You might try adding the /AUTHORIZE qualifier to the RUN to force it to be logged in with the quotas of the intended username.
And, if you still get the error message(s), please provide the complete text of the error.
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2005 03:34 AM
тАО08-24-2005 03:34 AM
Re: Starting a detached process from the batch queue
SYSTEM-F-ACCVIO, access violation, reason mask=04, virtual address=0000FFFE, PC=00040C54, PS=0000001B
%TRACE-F-TRACEBACK, symbolic stack dump follows
Image Name Module Name Routine Name Line Number rel PC abs PC
RNGCLIN 0 00030C54 00040C54
0 85404170 85404170