- 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
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2005 04:03 AM
08-24-2005 04:03 AM
Re: Starting a detached process from the batch queue
A big thankyou to all who contributed to solve my problem!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2005 04:08 AM
08-24-2005 04:08 AM
Re: Starting a detached process from the batch queue
are you sure in interactive mode, can your command works?
The difference between interactive mode and batch mode are:
1) SYLOGIN and LOGIN: statements submitted by F$MODE()
2) Rarely access restricion on SYSUAF
May be you have limited MAXDETACH in your SYSUAF, but this value is valid either in interactive either in batch mode.
I guess you have some limited quota.
Do you have process dump?
Antonio Vigliotti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2005 04:41 PM
08-24-2005 04:41 PM
Re: Starting a detached process from the batch queue
Some DCL commands have different defaults for qualifiers depending on the mode, e.g. the lINK commands automagially adds a /MAP if run in batch, which leads to an error if you try to install VMSINSTALlable kits in batch, because VMSINSTAL sets default to MISSING:[MISSING], which makes the creation of a MAP-file quite difficult. There were some softwarekits I had to reassemble.
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2005 05:08 PM
08-24-2005 05:08 PM
Re: Starting a detached process from the batch queue
Welcome to the ITRC forum Peter.
Good to read your problem is addressed.
You can express you gratitude in measured steps by assigning points to answers.
You can gracefully indicate that you are no longer interested in further discussion on this topic by 'closing' it.
Regards,
Hein. (0 point for this comment please).
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2005 05:40 PM
08-24-2005 05:40 PM
Re: Starting a detached process from the batch queue
Once again, thanks to all who contributed to the forum.