- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Detached processes
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
07-08-2004 02:14 AM
07-08-2004 02:14 AM
Detached processes
I only want to know if this is posible with the run command (process). Not interrested in other solutions.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2004 02:46 AM
07-08-2004 02:46 AM
Re: Detached processes
run loginout /inp/outp/detach/auth
If I remove the /auth I get the same kind of process (logicals, quotas). What is the logic of this ? Is /auth added if /deta is used ? Or is it because loginout creates a new process and always uses /auth to create them ?
Wim (confused)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2004 02:47 AM
07-08-2004 02:47 AM
Re: Detached processes
From help of Run/detach :
Creates a detached process with the same user identification code
(UIC) as the current process. (To create a detached process with
a different UIC, use the /UIC qualifier.)
Thanks & regards,
Lokesh Jain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2004 02:52 AM
07-08-2004 02:52 AM
Re: Detached processes
Nope. Tested it and login.com was not executed.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2004 02:57 AM
07-08-2004 02:57 AM
Re: Detached processes
When you run it without /uic , then do it execute login.com of default UIC ?
Thanks & regards,
Lokesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2004 03:01 AM
07-08-2004 03:01 AM
Re: Detached processes
My finding are (for running loginout):
1) If /uic is used, the process user will still be the original user, the uic will
be set to the specified value and sylogin is executed. The login of the user is
not done, unless the uic matches the current user.
2) If /auth is used, the /uic is ignored and a full login is done for the current
user.
3) /detach means /uic=current_uic
4) /auth makes all /quotas and /uic to be ignored
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2004 03:20 AM
07-08-2004 03:20 AM
Re: Detached processes
RUN/DET/INP=ABC.COM/UIC=[X,Y]/AUTH/OUT=ABC.LOG SYS$SYSTEM:LOGINOUT.EXE
this will get you are process with the correct uic and with DCL included. I don't think it would have ran the LOGIN.COM but you can add this to the DCL.
I think the username will be yours
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2004 03:23 AM
07-08-2004 03:23 AM
Re: Detached processes
That is just what I don't want. I want to be able to start it automatically ...
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2004 05:38 AM
07-08-2004 05:38 AM
Re: Detached processes
I've tryed in past this without success :-(
So I've solved running a batch process with specific user: it isn't the same but helped me.
I'm interesting in this solution, if somebody can help you.
Antonio Vigliotti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2004 08:09 AM
07-08-2004 08:09 AM
Re: Detached processes
from the deepest abysses in my memory - way back to VAX and VMS 4.something, I remember at that time LOGIN.COM (and SYLOGIN.COM) had to be excuted in the commandprocedure. RUN/DETACH did at that time not execute any login procedure, you had to program the invokation yourself.
I know VMS has eveolved, and this probably as well. But it might be a solution to the problem, at least part of it.
Willem
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2004 09:51 AM
07-08-2004 09:51 AM
Re: Detached processes
Of course this would be too easy :-(
I tried it with some extra commands in SYLOGIN.COM to make some extra checks.
This is why it won't work:
when I start a detached process as user SYSTEM with /UIC=XXX, even the SYS$LOGIN logical will still point to the login directory of user SYSTEM.
You could of course get the right login procedure and path from SYSUAF in some way.
I would go for the batch process as suggested in another answer. I use it a lot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2004 12:35 PM
07-08-2004 12:35 PM
Re: Detached processes
Is the original process (running as SYSTEM) running
a program or just some DCL?
We have this situation here. Our solution...
The "monitor" process is running detached and
when it needs to start another detached process
under a different username it uses the $PERSONA
system services to become the user, then uses
$CREPRC to create a process running LOGINOUT and
supplying a procedure that runs the final image.
Regards
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2004 04:35 PM
07-08-2004 04:35 PM
Re: Detached processes
Without resorting to persona services, there is really only ONE supported way to start any process under a different USERNAME and that's SUBMIT/USER=other-user
RUN/UIC does NOT change the username, it just changes the UIC. To get a detached process in another username, put your RUN/DETACHED command into a procedure and SUBMIT/USER it with the required username.
It doesn't matter how much you want to argue about this, or complain, if you want a supported solution, SUBMIT/USER is IT, period! Many people have built complex privileged code to try and adjust all the data structures required to switch username, but they ALWAYS break with new versions (which usually means a system crash), and they rarely get all the bits that are required anyway.
Note that even persona services don't really give you a true change in username. They're really designed to be used by a server process to behave "as if" it were running as a different username. That's subtly different from actually "being" that username.
/AUTHORIZE only does anything if the image is LOGINOUT.EXE. If it is included, MOST of the other qualifiers are overridden by the UAF values of the CURRENT USERNAME. UIC isn't actually ignored, the process starts out with the UIC you specify, but it gets overridden by the UIC from the UAF record (same for quotas and process name).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2004 06:04 PM
07-08-2004 06:04 PM
Re: Detached processes
Extra findings : when using /uic sylogin.com IS executed.
Isn't it a pitty that DCL can't do something that every U*** can ? Some work for engineering ...
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2004 08:12 AM
07-09-2004 08:12 AM
Re: Detached processes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2004 05:53 AM
07-11-2004 05:53 AM
Re: Detached processes
since it seems what you want is not available right now, how about a tool to make the
submit/user more comfortable? Hunter has a tool called job_daemon for this purpose:
http://vms.process.com/scripts/fileserv/fileserv_search.exe?package=job_daemon&description=&author=&system=Either&language=All
Greetings, Martin