<?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 start a process in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/start-a-process/m-p/4510831#M96447</link>
    <description>i have a alpha box with vms 7.3 loaded on it. i have also setup oracle rdbjdbc on it, everything works fine except after submitting this command "spawn/nowait/proc=rdbthinsrv java -jar RDB$JDBC_HOME:rdbthinsrv.jar" and i log out the process stop.&lt;BR /&gt;&lt;BR /&gt;i need the process rdbthinsrv to be running even though i log out. please advice.</description>
    <pubDate>Thu, 08 Oct 2009 23:02:17 GMT</pubDate>
    <dc:creator>adarsh_4</dc:creator>
    <dc:date>2009-10-08T23:02:17Z</dc:date>
    <item>
      <title>start a process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/start-a-process/m-p/4510831#M96447</link>
      <description>i have a alpha box with vms 7.3 loaded on it. i have also setup oracle rdbjdbc on it, everything works fine except after submitting this command "spawn/nowait/proc=rdbthinsrv java -jar RDB$JDBC_HOME:rdbthinsrv.jar" and i log out the process stop.&lt;BR /&gt;&lt;BR /&gt;i need the process rdbthinsrv to be running even though i log out. please advice.</description>
      <pubDate>Thu, 08 Oct 2009 23:02:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/start-a-process/m-p/4510831#M96447</guid>
      <dc:creator>adarsh_4</dc:creator>
      <dc:date>2009-10-08T23:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: start a process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/start-a-process/m-p/4510832#M96448</link>
      <description>adarsh,&lt;BR /&gt;&lt;BR /&gt;  As you've discovered, subprocesses stop when the parent process stops.&lt;BR /&gt;&lt;BR /&gt;  You have a number of choices for a process that is not dependent on an interactive process. Start by placing your command in a procedure. Perhaps,&lt;BR /&gt;&lt;BR /&gt;RDBTHINSRV.COM&lt;BR /&gt;$ SET PROCESS/NAME=RDBTHINSRV&lt;BR /&gt;$ java -jar RDB$JDBC_HOME:rdbthinsrv.jar&lt;BR /&gt;&lt;BR /&gt;One simple option is to use a batch job:&lt;BR /&gt;&lt;BR /&gt;$ SUBMIT RDBTHINSRV&lt;BR /&gt;&lt;BR /&gt;Another option is a detached process:&lt;BR /&gt;&lt;BR /&gt;$ RUN SYS$SYSTEM:LOGINOUT /AUTHORIZE /INPUT=RDBTHINSRV.COM /OUTPUT=RDBTHINSRV.OUT /ERROR=RDBTHINSRV.ERR&lt;BR /&gt;&lt;BR /&gt;Once you have one or other working, you can worry about what username the process needs to run under, privileges, log file locations and rollover, how you start this process when the system boots, how you recover from failure, monitoring, access controls, etc...</description>
      <pubDate>Fri, 09 Oct 2009 01:56:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/start-a-process/m-p/4510832#M96448</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2009-10-09T01:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: start a process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/start-a-process/m-p/4510833#M96449</link>
      <description>Hmmm. &lt;BR /&gt;&lt;BR /&gt;Just check the FAQ on the Oracle site?&lt;BR /&gt;&lt;BR /&gt;Google: +site:oracle.com rdbthinsrv  --&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.oracle.com/technology/products/rdb/htdocs/rdb_jdbc/rdbjdbc_faq.html" target="_blank"&gt;http://www.oracle.com/technology/products/rdb/htdocs/rdb_jdbc/rdbjdbc_faq.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;"This can be done by running the following:&lt;BR /&gt;$java  -jar  rdbthinsrv.jar&lt;BR /&gt;Issuing this command in a terminal window is not appropriate for a production environment because a prompt will not be returned. It will tie up the terminal window until the server is stopped.&lt;BR /&gt;&lt;BR /&gt;A better way to start the Rdb JDBC Thin Server process would be as a spawned subprocess, for example:&lt;BR /&gt;$spawn/nowait/proc=Rdb_Thin java -jar rdbthinsrv.jar&lt;BR /&gt;The best solution is to start the Rdb JDBC Thin Server process as a detached process.&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;Create a command procedure:&lt;BR /&gt;$ create thin_server.com&lt;BR /&gt;$ @sys$library:rdb$setver 7.1&lt;BR /&gt;$ @sys$startup:JAVA$122_SETUP.COM&lt;BR /&gt;$ define my_classes disk:[classes_directory]&lt;BR /&gt;$ define JAVA$CLASSPATH [],my_classes:rdbnative.jar,my_classes:rdbthin.jar&lt;BR /&gt;$ java -jar my_classes:rdbthinsrv.jar&lt;BR /&gt;Then submit the command file as follows:&lt;BR /&gt;$ run/detached/input=thin_server.com/error=thin_server_error.log -&lt;BR /&gt;   /output=thin_server.log/process_name=rdb_thin -&lt;BR /&gt;   sys$system:loginout.exe&lt;BR /&gt;The ability to start the Rdb JDBC Thin Server process as a TCP/IP service is under investigation."&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Oct 2009 02:28:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/start-a-process/m-p/4510833#M96449</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-10-09T02:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: start a process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/start-a-process/m-p/4510834#M96450</link>
      <description>OpenVMS 7.3.2 - How to Start a Java Application as a DETACHED Process on OpenVMS&lt;BR /&gt;&lt;BR /&gt;Description: The purpose of this document is to demonstrate one method for starting Java applications as a DETACHED process on OpenVMS systems.&lt;BR /&gt;&lt;BR /&gt;Document #: N/A&lt;BR /&gt;&lt;BR /&gt;Minimum skill level: 1&lt;BR /&gt;&lt;BR /&gt;Summary of instructions&lt;BR /&gt;OpenVMS Versions: 7.3-2, and later&lt;BR /&gt;&lt;BR /&gt;Java Versions: 1.3.1, 1.4.1, 1.4.2 and later.&lt;BR /&gt;&lt;BR /&gt;This How To document is intended to provide you with step-by-step instructions as well as a DCL Template that you can modify for use on your own system, in order to setup and execute a Java application as a DETACHED process on OpenVMS systems.&lt;BR /&gt;&lt;BR /&gt;1) Create or copy the following DCL command procedure into your current working directory, or any directory that you will be setting up for your Java application.&lt;BR /&gt;&lt;BR /&gt;$!**************************************************************************** &lt;BR /&gt;$!* Copyright 2005 Hewlett-Packard Co. All Rights Reserved * &lt;BR /&gt;$!* * &lt;BR /&gt;$!* We cannot guarantee the effectiveness of this program because of the * &lt;BR /&gt;$!* possibility of error in transmitting or implementing it. It is meant to * &lt;BR /&gt;$!* be used as a template for writing your own program, and it may require * &lt;BR /&gt;$!* modification for use on your system. * &lt;BR /&gt;$!**************************************************************************** &lt;BR /&gt;$!* This is an Example DCL program to demonstrate how to setup the Java * &lt;BR /&gt;$!* environment run your Java application as a "DETACHED" process. * &lt;BR /&gt;$!* * &lt;BR /&gt;$!* Java-Detach.com * &lt;BR /&gt;$!* HP Services, Java Support * &lt;BR /&gt;$!* Atlanta, GA. * &lt;BR /&gt;$!* * &lt;BR /&gt;$!* This is the INPUT file required to run Java as a "DETACHED" process. * &lt;BR /&gt;$!* * &lt;BR /&gt;$!* The command to run this program detached would then be something like: * &lt;BR /&gt;$!* * &lt;BR /&gt;$!* run/detach/authorize sys$system:loginout.exe - * &lt;BR /&gt;$!* /input=sys$sysdevice:[retterer.java]java-detach.com - * &lt;BR /&gt;$!* /output=sys$sysdevice:[retterer.java]java$output.log * &lt;BR /&gt;$!* * &lt;BR /&gt;$!* You would replace "sys$sysdevice:[retterer.java]" with your own * &lt;BR /&gt;$!* application specific directory paths. * &lt;BR /&gt;$!**************************************************************************** &lt;BR /&gt;$! &lt;BR /&gt;$ set NoOn &lt;BR /&gt;$! &lt;BR /&gt;$ write sys$output "Detached Java process starting..." &lt;BR /&gt;$! &lt;BR /&gt;$!*** Setup the Java Environment that you have currently installed. &lt;BR /&gt;$!*** This example will use the FASTVM. &lt;BR /&gt;$!*** You MUST modify this section ******** &lt;BR /&gt;$! &lt;BR /&gt;$ @sys$common:[java$142.com]java$142_setup.com fast &lt;BR /&gt;$! &lt;BR /&gt;$! &lt;BR /&gt;$!*** Define the Java$classpath logical for this process. &lt;BR /&gt;$!*** You MUST modify this section ********* &lt;BR /&gt;$! &lt;BR /&gt;$ define java$classpath sys$sysdevice:[sys0.syscommon.java$142.lib]tools.jar, - &lt;BR /&gt;sys$sysdevice:[sys0.syscommon.java$142.lib]dt.jar, - &lt;BR /&gt;mydisk:[myuser.java], [] &lt;BR /&gt;$! &lt;BR /&gt;$!*** This next command is not required unless you want to verify your &lt;BR /&gt;$!*** java$classpath. &lt;BR /&gt;$! &lt;BR /&gt;$ show log java$classpath &lt;BR /&gt;$! &lt;BR /&gt;$!*** This is the command-line needed to start the Java VM, and the Java app. &lt;BR /&gt;$!*** All arguments, and the program name must be be "QUOTED" as shown below. &lt;BR /&gt;$!*** You MUST modify this section ********* &lt;BR /&gt;$! &lt;BR /&gt;$ java "-verbose:gc" "Test1" &lt;BR /&gt;$! &lt;BR /&gt;$!*** This next line is not required but we are signalling the end of the program &lt;BR /&gt;$!*** in the log file for demonstration purposes. *** &lt;BR /&gt;$! &lt;BR /&gt;$ write sys$output "Detached Java process exiting..." &lt;BR /&gt;$! &lt;BR /&gt;$ write sys$output "Done!" &lt;BR /&gt;$! &lt;BR /&gt;$!*** Exiting the procedure. *** &lt;BR /&gt;$ exit &lt;BR /&gt;$!*************** End of File ************** &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2) Modify the command procedure to function within your specific OpenVMS environment. (i.e., change the directories, filenames, Java program name and any arguments required to run your Java application, etc...)&lt;BR /&gt;&lt;BR /&gt;3) Once you have your command procedure modified to your satisfaction, you can now test the program.&lt;BR /&gt;&lt;BR /&gt;4) To run the program as a detached process, execute this command:&lt;BR /&gt;&lt;BR /&gt;$ run/detach/authorize/process_name="myapp" sys$system:loginout.exe - &lt;PRESS return=""&gt; &lt;BR /&gt;_$ /input=mydisk:[myuser.java]java-detach.com - &lt;PRESS return=""&gt; &lt;BR /&gt;_$ /output=mydisk:[myuser.java]java$output.log &lt;PRESS return=""&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;%RUN-S-PROC_ID, identification of created process is 00000603 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;5) Then, to ensure that the process got started successfully...&lt;BR /&gt;&lt;BR /&gt;$ show system &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;OpenVMS V7.3-2 on node VISUAL 20-JAN-2005 16:58:30.23 Uptime 364 23:34:17 &lt;BR /&gt;Pid Process Name State Pri I/O CPU Page flts Pages &lt;BR /&gt;00000201 SWAPPER HIB 16 0 0 00:00:03.26 0 0 &lt;BR /&gt;00000602 RETTERER_7 HIB 1 354 0 00:00:00.12 399 385 S &lt;BR /&gt;00000603 MYAPP HIB 4 795 0 00:00:00.92 8713 856 M &amp;lt;&amp;lt;--- HERE it is ! &lt;BR /&gt;00000204 LANACP HIB 13 64 0 00:00:00.00 96 118 &lt;BR /&gt;00000206 IPCACP HIB 10 9 0 00:00:00.00 32 42 &lt;BR /&gt;00000207 ERRFMT HIB 8 2756 0 00:00:00.74 98 115 &lt;BR /&gt;00000209 OPCOM HIB 8 154 0 00:00:00.02 93 44 &lt;BR /&gt;0000020A AUDIT_SERVER HIB 10 69 0 00:00:00.02 120 148 &lt;BR /&gt;0000020B JOB_CONTROL HIB 10 2158 0 00:00:00.15 54 77 &lt;BR /&gt;0000020D QUEUE_MANAGER HIB 10 79 0 00:00:00.01 117 152 &lt;BR /&gt;0000020E SECURITY_SERVER HIB 10 62 0 00:00:00.04 956 261 &lt;BR /&gt;0000020F ACME_SERVER HIB 9 104 0 00:00:00.07 493 413 M &lt;BR /&gt;00000210 TP_SERVER HIB 10 5667 0 00:00:00.10 71 92 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;6) The JAVA$OUTPUT.LOG file, typically will appear to be empty until the program has completed and the process has been terminated. You will be able to look at the logfile information when the process has run-down and exited. &lt;BR /&gt;&lt;BR /&gt;$ type JAVA$OUTPUT.LOG &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ Set NoOn &lt;BR /&gt;$ VERIFY = F$VERIFY(F$TRNLNM("SYLOGIN_VERIFY")) &lt;BR /&gt;Login process type is: OTHER &lt;BR /&gt;Detached Java process starting... &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"JAVA$CLASSPATH" = "SYS$SYSDEVICE:[SYS0.SYSCOMMON.JAVA$142.LIB]TOOLS.JAR" &lt;BR /&gt;(LNM$PROCESS_TABLE) &lt;BR /&gt;= "SYS$SYSDEVICE:[SYS0.SYSCOMMON.JAVA$142.LIB]DT.JAR" &lt;BR /&gt;= "SYS$SYSDEVICE:[RETTERER.JAVA]" &lt;BR /&gt;= "[]" &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thu Jan 20 16:59:31 EST 2005 &lt;BR /&gt;Thu Jan 20 16:59:40 EST 2005 &lt;BR /&gt;Thu Jan 20 16:59:51 EST 2005 &lt;BR /&gt;Thu Jan 20 17:00:01 EST 2005 &lt;BR /&gt;Thu Jan 20 17:00:11 EST 2005 &lt;BR /&gt;Thu Jan 20 17:00:21 EST 2005 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Detached Java process exiting... &lt;BR /&gt;Done! &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;--------------------------------------------------------------------------------&lt;BR /&gt;&lt;/PRESS&gt;&lt;/PRESS&gt;&lt;/PRESS&gt;</description>
      <pubDate>Fri, 09 Oct 2009 22:12:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/start-a-process/m-p/4510834#M96450</guid>
      <dc:creator>Rick Retterer</dc:creator>
      <dc:date>2009-10-09T22:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: start a process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/start-a-process/m-p/4510835#M96451</link>
      <description>thank you, i have managed to get it running. &lt;BR /&gt;&lt;BR /&gt;thanks once again</description>
      <pubDate>Fri, 09 Oct 2009 23:58:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/start-a-process/m-p/4510835#M96451</guid>
      <dc:creator>adarsh_4</dc:creator>
      <dc:date>2009-10-09T23:58:12Z</dc:date>
    </item>
  </channel>
</rss>

