<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: can't start detached process with sys$system:loginout.exe in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953316#M34429</link>
    <description>Thanks for the replies Robert, Wim. Fortunately I was able to get the issues resolved back in Jan (with everybody's help). Now it looks like it is Mohren that could use the help. I probably should have closed the thread months ago, but if somebody else can get some help from this, its all for the better.&lt;BR /&gt;&lt;BR /&gt;Chris</description>
    <pubDate>Mon, 24 Jul 2006 10:04:00 GMT</pubDate>
    <dc:creator>Chris D Cook</dc:creator>
    <dc:date>2006-07-24T10:04:00Z</dc:date>
    <item>
      <title>can't start detached process with sys$system:loginout.exe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953304#M34417</link>
      <description>I am trying to run a simple program in a detached process by passing a starter script as an input file:&lt;BR /&gt;&lt;BR /&gt;run /detached /augh /input='infile /output='outfile /error='errfile /proc='procname sys$system:loginout.exe&lt;BR /&gt;&lt;BR /&gt;type 'infile&lt;BR /&gt;$! starter.com&lt;BR /&gt;$ run tempdir:blah.exe&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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).&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Wed, 18 Jan 2006 12:42:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953304#M34417</guid>
      <dc:creator>Chris D Cook</dc:creator>
      <dc:date>2006-01-18T12:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: can't start detached process with sys$system:loginout.exe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953305#M34418</link>
      <description>7.3-2 in case that makes a difference.</description>
      <pubDate>Wed, 18 Jan 2006 12:44:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953305#M34418</guid>
      <dc:creator>Chris D Cook</dc:creator>
      <dc:date>2006-01-18T12:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: can't start detached process with sys$system:loginout.exe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953306#M34419</link>
      <description>&amp;gt; run /detached /augh /input='infile /output='outfile /error='errfile /proc='procname &lt;BR /&gt;&lt;BR /&gt;I presume that "augh" is only a typo in your posting and not the code.&lt;BR /&gt;&lt;BR /&gt;Does 'outfile' get created? If so, what are its contents?&lt;BR /&gt;&lt;BR /&gt;Use VMS ACCOUNTNG to determine the final status of the job - it will likely provide a clue.&lt;BR /&gt;&lt;BR /&gt;$ ACCO/FULL/ID=xxxxxxxx&lt;BR /&gt;&lt;BR /&gt;where those x's are replaced by the PID that you observe when the detached job is started.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; what loginout actually does&lt;BR /&gt;&lt;BR /&gt;Either performs the requisite actions to accomplish a login or a logout. Since you were already logged it knew to log you out :)</description>
      <pubDate>Wed, 18 Jan 2006 13:18:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953306#M34419</guid>
      <dc:creator>Jim_McKinney</dc:creator>
      <dc:date>2006-01-18T13:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: can't start detached process with sys$system:loginout.exe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953307#M34420</link>
      <description>I presume /AUGH is really /AUTH ?&lt;BR /&gt;&lt;BR /&gt;Do you have Accounting turned on?  if so have you looked for accounting records for the process start/termination?&lt;BR /&gt;&lt;BR /&gt;Do you get a logfile created for outfile?  If you did get an OUTFILE created, there should be some message(s) in it.&lt;BR /&gt;&lt;BR /&gt;All of your apostrophes should be in matched pairs.  Your command should be &lt;BR /&gt;&lt;BR /&gt;run /detached /augh /input='infile' /output='outfile' /error='errfile' /proc='procname' sys$system:loginout.exe&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Robert</description>
      <pubDate>Wed, 18 Jan 2006 14:08:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953307#M34420</guid>
      <dc:creator>Robert_Boyd</dc:creator>
      <dc:date>2006-01-18T14:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: can't start detached process with sys$system:loginout.exe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953308#M34421</link>
      <description>Fooey -- I duplicated the typo for /augh -- it should be /auth ;-)  &lt;BR /&gt;&lt;BR /&gt;Oh well !!</description>
      <pubDate>Wed, 18 Jan 2006 14:15:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953308#M34421</guid>
      <dc:creator>Robert_Boyd</dc:creator>
      <dc:date>2006-01-18T14:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: can't start detached process with sys$system:loginout.exe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953309#M34422</link>
      <description>&amp;gt; The way you typed it in will not evaluate properly.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.</description>
      <pubDate>Wed, 18 Jan 2006 14:20:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953309#M34422</guid>
      <dc:creator>Jim_McKinney</dc:creator>
      <dc:date>2006-01-18T14:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: can't start detached process with sys$system:loginout.exe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953310#M34423</link>
      <description>I reran the procedure to get the information requested, and wouldn't you know... it worked this time. I have looked for things that may have changed, but so far I haven't found anything.&lt;BR /&gt;&lt;BR /&gt;I will keep this thread open for a little longer in case it starts acting up again.&lt;BR /&gt;&lt;BR /&gt;Yes, augh was a typo.&lt;BR /&gt;&lt;BR /&gt;Thanks for the suggestions; hopefully this stays "fixed"&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Wed, 18 Jan 2006 14:25:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953310#M34423</guid>
      <dc:creator>Chris D Cook</dc:creator>
      <dc:date>2006-01-18T14:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: can't start detached process with sys$system:loginout.exe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953311#M34424</link>
      <description>Jim,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Robert</description>
      <pubDate>Wed, 18 Jan 2006 14:26:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953311#M34424</guid>
      <dc:creator>Robert_Boyd</dc:creator>
      <dc:date>2006-01-18T14:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: can't start detached process with sys$system:loginout.exe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953312#M34425</link>
      <description>I have got a similar problem. I tried to start a detached process by&lt;BR /&gt;run /detached /input=test.com  sys$system:loginout.exe&lt;BR /&gt;with test.com:&lt;BR /&gt;$ runexe=="data1:[user.mohren_j]test"&lt;BR /&gt;$ runexe&lt;BR /&gt;$ exit&lt;BR /&gt;With acco/full/id=&lt;GENERATED pid=""&gt; I mostly only get information of quite old processes (march 06)&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your help&lt;/GENERATED&gt;</description>
      <pubDate>Mon, 24 Jul 2006 09:30:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953312#M34425</guid>
      <dc:creator>Mohren</dc:creator>
      <dc:date>2006-07-24T09:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: can't start detached process with sys$system:loginout.exe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953313#M34426</link>
      <description>You don't get sys$scratch and sys$login. Define them yourself in the script.&lt;BR /&gt;&lt;BR /&gt;I also specify /input=f$parse("file") because loginout doesn't understand (all) logicals.&lt;BR /&gt;&lt;BR /&gt;I would still check with accounting why the startup failed.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Mon, 24 Jul 2006 09:38:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953313#M34426</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2006-07-24T09:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: can't start detached process with sys$system:loginout.exe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953314#M34427</link>
      <description>Chris,&lt;BR /&gt;&lt;BR /&gt;For self-educational purposes, add a SHOW LOGICALS to the command file.&lt;BR /&gt;&lt;BR /&gt;As has been noted, what results from a RUN/DETACH is not precisely what gets created by an interactive, network, remote, or batch login. If your program depends (explicitly or implicitly) on a presumption that certain logical names were defined, you may be in for a problem.&lt;BR /&gt;&lt;BR /&gt;Also check the values of LNM$FILE_DEV in the Process Directory (Logical Name table LNM$PROCESS_DIRECTORY).&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Mon, 24 Jul 2006 09:54:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953314#M34427</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2006-07-24T09:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: can't start detached process with sys$system:loginout.exe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953315#M34428</link>
      <description>Correction : the lexical must be enclosed in ' to get the expansion.&lt;BR /&gt;&lt;BR /&gt;In your case, you DO get the logicals. It's when you specify /uic that you don't get them. /auth + /detach cause a full login to be done.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Mon, 24 Jul 2006 09:55:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953315#M34428</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2006-07-24T09:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: can't start detached process with sys$system:loginout.exe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953316#M34429</link>
      <description>Thanks for the replies Robert, Wim. Fortunately I was able to get the issues resolved back in Jan (with everybody's help). Now it looks like it is Mohren that could use the help. I probably should have closed the thread months ago, but if somebody else can get some help from this, its all for the better.&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Mon, 24 Jul 2006 10:04:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953316#M34429</guid>
      <dc:creator>Chris D Cook</dc:creator>
      <dc:date>2006-07-24T10:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: can't start detached process with sys$system:loginout.exe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953317#M34430</link>
      <description>Wlm,&lt;BR /&gt;&lt;BR /&gt;The full login may be done, but a large caution remains appropriate.&lt;BR /&gt;&lt;BR /&gt;Many (and I mean MANY) LOGIN.COM procedures incorrectly presume that INTERACTIVE, NETWORK, and BATCH are the only responses. They have been designed or tested with the Detached Process case, which will yield OTHER.&lt;BR /&gt;&lt;BR /&gt;It should not be a problem, but caution and vigilence is still recommended.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Mon, 24 Jul 2006 10:06:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953317#M34430</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2006-07-24T10:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: can't start detached process with sys$system:loginout.exe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953318#M34431</link>
      <description>Mohren's problem: the "runexe" command is not defined correctly: a leading "$" is missing.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Jul 2006 10:06:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953318#M34431</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2006-07-24T10:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: can't start detached process with sys$system:loginout.exe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953319#M34432</link>
      <description>No, this was just a typo. The $ is in the runexe definition.&lt;BR /&gt;I worked on looking for the problem, and I meanwhile got something in my outfile:&lt;BR /&gt;&lt;BR /&gt;Error opening primary input file sys$input&lt;BR /&gt;Error in device name or inappropriate device type for operation&lt;BR /&gt;&lt;BR /&gt;But I don't see where sys$input is used!</description>
      <pubDate>Mon, 24 Jul 2006 10:11:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953319#M34432</guid>
      <dc:creator>Mohren</dc:creator>
      <dc:date>2006-07-24T10:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: can't start detached process with sys$system:loginout.exe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953320#M34433</link>
      <description>Just one more info: I put the command &lt;BR /&gt;show logical * (first line)&lt;BR /&gt;in my input file. But not even the logicals appear in my output</description>
      <pubDate>Mon, 24 Jul 2006 10:17:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953320#M34433</guid>
      <dc:creator>Mohren</dc:creator>
      <dc:date>2006-07-24T10:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: can't start detached process with sys$system:loginout.exe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953321#M34434</link>
      <description>Mohren,&lt;BR /&gt;&lt;BR /&gt;As a point of ITRC Forum etiquette, a new thread should really be opened.&lt;BR /&gt;&lt;BR /&gt;However, as Wlm mentioned earlier, check the accounting logs. If the first line of the command file does not execute, then the LOGIN.COM (if you are specifyig /AUTHORIZE) or something else is not right.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Mon, 24 Jul 2006 10:21:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953321#M34434</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2006-07-24T10:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: can't start detached process with sys$system:loginout.exe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953322#M34435</link>
      <description>Ok, sorry. I will open a new thread. Thnaks fÃ¼r the answers already given to me.</description>
      <pubDate>Mon, 24 Jul 2006 10:25:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953322#M34435</guid>
      <dc:creator>Mohren</dc:creator>
      <dc:date>2006-07-24T10:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: can't start detached process with sys$system:loginout.exe</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953323#M34436</link>
      <description>I think it's the f$parse you need.&lt;BR /&gt;/input='f$parse("file")'&lt;BR /&gt;Idem for /output and /error.&lt;BR /&gt;&lt;BR /&gt;Wim&lt;BR /&gt;(didn't see that it was an old one. Time flies by very fast)</description>
      <pubDate>Mon, 24 Jul 2006 10:38:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/can-t-start-detached-process-with-sys-system-loginout-exe/m-p/4953323#M34436</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2006-07-24T10:38:20Z</dc:date>
    </item>
  </channel>
</rss>

