- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- can't start detached process with sys$system:login...
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
тАО01-18-2006 04:42 AM
тАО01-18-2006 04:42 AM
run /detached /augh /input='infile /output='outfile /error='errfile /proc='procname sys$system:loginout.exe
type 'infile
$! starter.com
$ run tempdir:blah.exe
blah.exe contains an infinite-loop that appends a small message to a tempfile every few seconds. I can check the file to see if the process is running.
After the run command, I get a message telling me the id of the new process, but blah.exe never seems to get started, and the new process is either not started, or stops immediately.
If I issue the run command with blah.exe as the file to be executed (instead of loginout) it works, but I am using the input since I will soon need to pass parameters into the app.
I did see messages posted that the detached process would not have access to certain logicals, so I tried absolute addresses in place of logicals, but that made no difference.
Also, just for kicks, i tried running loginout interactively and it ended my session. Didn't know if this was normal or not since I have been unable to find documentation about what loginout actually does (and how).
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2006 04:44 AM
тАО01-18-2006 04:44 AM
Re: can't start detached process with sys$system:loginout.exe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2006 05:18 AM
тАО01-18-2006 05:18 AM
Re: can't start detached process with sys$system:loginout.exe
I presume that "augh" is only a typo in your posting and not the code.
Does 'outfile' get created? If so, what are its contents?
Use VMS ACCOUNTNG to determine the final status of the job - it will likely provide a clue.
$ ACCO/FULL/ID=xxxxxxxx
where those x's are replaced by the PID that you observe when the detached job is started.
> what loginout actually does
Either performs the requisite actions to accomplish a login or a logout. Since you were already logged it knew to log you out :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2006 06:08 AM
тАО01-18-2006 06:08 AM
Re: can't start detached process with sys$system:loginout.exe
Do you have Accounting turned on? if so have you looked for accounting records for the process start/termination?
Do you get a logfile created for outfile? If you did get an OUTFILE created, there should be some message(s) in it.
All of your apostrophes should be in matched pairs. Your command should be
run /detached /augh /input='infile' /output='outfile' /error='errfile' /proc='procname' sys$system:loginout.exe
The way you typed it in will not evaluate properly. If you actually had the command the way you typed it in here, you probably had some of the symbol interpretation fail which would have made the run fail to open the input or output. You should see that logged in the accounting record(s) for the process.
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2006 06:15 AM
тАО01-18-2006 06:15 AM
Re: can't start detached process with sys$system:loginout.exe
Oh well !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2006 06:20 AM
тАО01-18-2006 06:20 AM
Re: can't start detached process with sys$system:loginout.exe
In this case the symbols in the command line will translate correctly due to the trailing space delimeter for each of the symbols introduced with a single-quote character. However, I agree that it is bad policy to not pair up the quotes.
As noted, "/augh" is incorrect. But, the fact that command execution resulted in the creation of a process indicates that this wasn't actually part of the command line that was executed as it would have been rejected by DCL and the RUN would never have executed at all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2006 06:25 AM
тАО01-18-2006 06:25 AM
Re: can't start detached process with sys$system:loginout.exe
I will keep this thread open for a little longer in case it starts acting up again.
Yes, augh was a typo.
Thanks for the suggestions; hopefully this stays "fixed"
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2006 06:26 AM
тАО01-18-2006 06:26 AM
Re: can't start detached process with sys$system:loginout.exe
Thanks for the correction -- I have to say though that it is so easy to make a mistake and leave out the blank and I have been bitten so many times by mismatched apostrophes and/or quotation marks. There have been some bizarre commands executed because of mismatches -- and some cases were very difficult to debug. One reason why I do really like to use DCL_CHECK on procedures that are going to become production code. I don't always agree with everything DCL_CHECK flags, but at least I get flagged on everything of importance.
Another possibility is a security issue -- if the requested output file or input file are not accessible by the user starting the detached process, so it might be helpful to do a REPLY/ENABLE=SECURITY before doing the run command and see if you get any OPCOM alerts.
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2006 02:30 AM
тАО07-24-2006 02:30 AM
Re: can't start detached process with sys$system:loginout.exe
run /detached /input=test.com sys$system:loginout.exe
with test.com:
$ runexe=="data1:[user.mohren_j]test"
$ runexe
$ exit
With acco/full/id=
Thanks in advance for your help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2006 02:38 AM
тАО07-24-2006 02:38 AM
Re: can't start detached process with sys$system:loginout.exe
I also specify /input=f$parse("file") because loginout doesn't understand (all) logicals.
I would still check with accounting why the startup failed.
Wim