- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Detached process does not run, but no error indica...
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
01-19-2005 02:35 AM
01-19-2005 02:35 AM
Re: Detached process does not run, but no error indicated
I just started reading about using sys$system:loginout.exe. The book is not very clear on how this is done. In the description of SYS$CREPRC, it says "In creating a detached or subprocess, you can specify that the process run the image SYS$SYSTEM:LOGINOUT.EXE." Does this mean I can tell any detached process to run it before executing or is the process responsible for running it. Probably the latter is true. If so, how do I run LOGINOUT from the subprocess?
Thanks,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2005 02:43 AM
01-19-2005 02:43 AM
Re: Detached process does not run, but no error indicated
$ run/detached/input=
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2005 02:50 AM
01-19-2005 02:50 AM
Re: Detached process does not run, but no error indicated
Thanks. I'll give that a try. I like this method because I don't have to change the way I define the logicals.
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2005 03:12 AM
01-19-2005 03:12 AM
Re: Detached process does not run, but no error indicated
I tried that. I'm not sure why it didn't work. Here is exactly what I did.
Created test.com in sys$sysdevice:[sys0.users.popernack] with the following lines:
$ @login
$ r sd_iodr_demo
This directory has my login.com file that has all the necessary logicals defined. It also puts me in the proper directory (where the executable is located). sd_iodr_demo is the executable.
I entered the following command:
run/detach/process_name=demo/input=SYS$SYSDEVICE:[SYS0.USERS.POPERNACK]tes
t.com sys$system:loginout
I got a message that the process was created. The ACCOUNTING utility verified that it was created. The first line of code is a write statement similar to the one in the test program. The FOR051.DAT file was never created - checked our entire "OS" and "development" disks for the file (in case it wrote it somewhere I wasn't expecting).
Thanks,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2005 03:22 AM
01-19-2005 03:22 AM
Re: Detached process does not run, but no error indicated
$ @login
$ r sd_iodr_demo"
With the detached process, I do not think it knows the default directory, so try modifying your command procedure to specify disk and directory for login and sd_iodr_demo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2005 03:57 AM
01-19-2005 03:57 AM
Re: Detached process does not run, but no error indicated
I don't think the suprocess needs to have it defined in order to start the process, but I tried it anyway. Here's what I did:
SD1:: run/detach/process_name=demo/input=dkb0:[SYS0.USERS.POPERNACK]test.com -
_SD1:: dkb0:[sys0.syscommon.sysexe]loginout.exe
No logicals are used. I also modified test.com:
$! OPEN/WRITE test_out 'test.dat'
$! WRITE test_out 'started test.com'
$! CLOSE test_out
$ sd_disk = "DISK$SMARTDATA:"
$ sd_dir31 = f$fao("!AS!AS", sd_disk, "[SD31.]")
$ define/job/trans=concealed sd$root 'sd_dir31'
$ set def sd$root:[000000]
If I run test.com from the DCL prompt it starts the executable.
PS Can you tell what is wrong with the portion that is commented out? It does not write to test.dat (running @test from DCL).
Thanks,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2005 04:00 AM
01-19-2005 04:00 AM
Re: Detached process does not run, but no error indicated
The last line in test.com is still
$ r sd_iodr_demo
Thanks,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2005 04:04 AM
01-19-2005 04:04 AM
Re: Detached process does not run, but no error indicated
$! OPEN/WRITE test_out 'test.dat'
$! WRITE test_out 'started test.com'
$! CLOSE test_out
In the first line, remove the single quotes('). In the second line change the single quotes (') to the double quote character ("). Single quote to DCL means symbol substitution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2005 04:12 AM
01-19-2005 04:12 AM
Re: Detached process does not run, but no error indicated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2005 04:23 AM
01-19-2005 04:23 AM
Re: Detached process does not run, but no error indicated
Thanks. That worked. When I run test.com from dcl, it writes test.dat. If I run loginout.exe detached with test.com as input, the file is not written. This seems to indicate that test.com is not being run.
Thanks,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2005 04:26 AM
01-19-2005 04:26 AM
Re: Detached process does not run, but no error indicated
Every time I ran loginout.exe, it was logged by accounting.
Thanks,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2005 05:04 AM
01-19-2005 05:04 AM
Re: Detached process does not run, but no error indicated
I forgot to use the /full qualifier with the accounting utility. The final status text was:
%SYSTEM-F-NOLOGNAM, no logical name match
This was the status whether or not I used the logicals (sys$sysdevice, etc.). TEST.DAT was not created.
Also, I noticed it takes a while (30 seconds, maybe) for the entry to appear in ACCOUNTING. I checked for the PID immediately after running and it was not there. Is loginout waiting for a username / password and then timing out?
Thanks,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2005 05:17 AM
01-19-2005 05:17 AM
Re: Detached process does not run, but no error indicated
Thanks,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2005 05:26 AM
01-19-2005 05:26 AM
Re: Detached process does not run, but no error indicated
now you specified:
SD1:: run/detach/process_name=demo/input=dkb0:[SYS0.USERS.POPERNACK]test.com -
_SD1:: dkb0:[sys0.syscommon.sysexe]loginout.exe
but in TEST.COM you do:
$! OPEN/WRITE test_out 'test.dat'
$! WRITE test_out 'started test.com'
$! CLOSE test_out
$ sd_disk = "DISK$SMARTDATA:"
$ sd_dir31 = f$fao("!AS!AS", sd_disk, "[SD31.]")
$ define/job/trans=concealed sd$root 'sd_dir31'
$ set def sd$root:[000000]
$ r sd_iodr_demo
Is DISK$SMARTDATA a _DISK_ device, or a concealed device of a directory _ON_ a disk device??
If the latter, _THAT_ is the problem! Concealed devices cannot be derived from concealed devices. (A looooong stranding request from me!).
BTW, is "SMART" here suggestive of the "SMARTSTAR" software?
hth.
Proost.
Have one on me.
Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2005 05:39 AM
01-19-2005 05:39 AM
Re: Detached process does not run, but no error indicated
I'm not sure of the proper terminology, but you can reference a physical device by specifying DISK$(volume name) which is what I have done. As far as I know, that is exactly that same as DK...
The company I work for is SmartData, so that is actually refering to our company name. I have never heard of SMARTSTAR. What does SMARTSTAR do?
Thanks,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2005 06:15 AM
01-19-2005 06:15 AM
Re: Detached process does not run, but no error indicated
I decided to keep everything exacly the same except define sd$root as /group instead of /job. I actually tried this early on and it didn't work. I had the executable linked /debug at the time - it cannot run detached with X-Windows debugger for obvious reasons. I changed that earlier, but never went back and retried defining the logicals with /group until now.
Thanks,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2005 06:23 AM
01-19-2005 06:23 AM
Re: Detached process does not run, but no error indicated
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2005 07:56 AM
01-19-2005 07:56 AM
Re: Detached process does not run, but no error indicated
first of all: glad it is solved.
What does SMARTSTAR do
I only am system manager at a site that makes use of it, but as far as I know, it is a software product, that allows to define a 'relational shell' over a set of indexed RMS files, and than use (an) SQL (variant) on them; and it includes a relational Report Writer.
(Willem G.: correct me if I am wrong)
I just read up on how to do the points, so I'll update and submit them now.
Thanks, in the name of all that took part.
I would like to use the opportunity to address a minor point.
You did not assign points to all answers.
At a quick scan a think those are minor clarifications, so, if I am not mistaken, I assume you decided those did not merit extra points. That is totally OK, and fully your decision, _BUT_, it leaves those answers unassigned, in your profile statistics, and in the general Forum statistics.
There is an easy, and desired, cure:
if an answer deserves no points, you can assign 0 (zero) points. It only affects the 'unassigned' statistics, and it tells the poster that at least you have seen and evaluted the answer.
I noticed it was your first question.
An interesting one at that!
Hope to see you back regularly.
Proost.
Have one on me.
Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 12:25 AM
01-20-2005 12:25 AM
Re: Detached process does not run, but no error indicated
Thanks for all the help. This was an enjoyable experience.
Jan-
Thanks for the info on the points - you're right, I meant for those to be "N/A". I'll change them to 0 points.
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 12:45 AM
01-20-2005 12:45 AM
Re: Detached process does not run, but no error indicated
- « Previous
- Next »