<?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: How copy file form detached process? in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108363#M31049</link>
    <description>Other options including grabbing the rmscopy routine from [.vms]vms.c in the Perl sources or searching for fast_io_copy.c in the comp.os.vms archives.  The latter uses the $IO_PERFORM interface (also demonstrated in SYS$EXAMPLES:IO_PERFORM.C).&lt;BR /&gt;&lt;BR /&gt;There was a recent discussion of callable FTP on comp.os.vms.  There's more than one way to do it, depending on your TCP/IP stack.</description>
    <pubDate>Mon, 03 Nov 2003 12:00:06 GMT</pubDate>
    <dc:creator>Craig A Berry</dc:creator>
    <dc:date>2003-11-03T12:00:06Z</dc:date>
    <item>
      <title>How copy file form detached process?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108360#M31046</link>
      <description>I have to write a little program using C language; this application have to copy file from a source folder into various folder.&lt;BR /&gt;Program runs in detach mode; I used LIB$SPAWN system routine but doen't work (exit status = %X7FF58005 I don't known).&lt;BR /&gt;I think this happens because deteched process has not a CLI (Command Language Interpreter) so it isn't possible execute a DCL command.&lt;BR /&gt;How can I do this?&lt;BR /&gt;Also, sometimes I have to send the file to another node using FTP.&lt;BR /&gt; &lt;BR /&gt;Tahnks to all&lt;BR /&gt;Antoniov&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Nov 2003 05:25:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108360#M31046</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2003-11-03T05:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: How copy file form detached process?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108361#M31047</link>
      <description>A CLI is mapped to your process by a system image called SYS$SYSTEM:LOGINOUT.EXE.  When a detached process is created without executing LOGINOUT.EXE, a CLI is not mapped to the process.&lt;BR /&gt;&lt;BR /&gt;Solution:&lt;BR /&gt; &lt;BR /&gt;$! Create a command procedure that just has the RUN program command,&lt;BR /&gt;$! This procedure is the /INPUT for the RUN/DETACH command below.&lt;BR /&gt;$&lt;BR /&gt;$ create detach.com&lt;BR /&gt;$ RUN detach.exe&lt;BR /&gt;$!&lt;BR /&gt; &lt;BR /&gt;$! Run loginout.exe as the image to create the detached process&lt;BR /&gt;$!&lt;BR /&gt;$ RUN/DETACH/ERROR=detach.err/OUTPUT=detach.out/INPUT=detach.com -&lt;BR /&gt;  sys$system:loginout.exe&lt;BR /&gt;$!&lt;BR /&gt;&lt;BR /&gt;The procedure to use with SYS$CREPRC is the same.  Pass SYS$SYSTEM:LOGINOUT.EXE as the "image" and pass "detach.com" as the&lt;BR /&gt;"input".&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Nov 2003 06:03:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108361#M31047</guid>
      <dc:creator>Åge Rønning</dc:creator>
      <dc:date>2003-11-03T06:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: How copy file form detached process?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108362#M31048</link>
      <description>There isn't a callable copy but you can use the convert routines see &lt;A href="http://h71000.www7.hp.com/doc/731FINAL/4493/4493pro_006.html#4493_conv_chap" target="_blank"&gt;http://h71000.www7.hp.com/doc/731FINAL/4493/4493pro_006.html#4493_conv_chap&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;or the backup api (VMS V7.1 and later) - see&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/731FINAL/4493/4493pro_001.html#4493_bu_chap" target="_blank"&gt;http://h71000.www7.hp.com/doc/731FINAL/4493/4493pro_001.html#4493_bu_chap&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Nov 2003 08:03:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108362#M31048</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2003-11-03T08:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: How copy file form detached process?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108363#M31049</link>
      <description>Other options including grabbing the rmscopy routine from [.vms]vms.c in the Perl sources or searching for fast_io_copy.c in the comp.os.vms archives.  The latter uses the $IO_PERFORM interface (also demonstrated in SYS$EXAMPLES:IO_PERFORM.C).&lt;BR /&gt;&lt;BR /&gt;There was a recent discussion of callable FTP on comp.os.vms.  There's more than one way to do it, depending on your TCP/IP stack.</description>
      <pubDate>Mon, 03 Nov 2003 12:00:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108363#M31049</guid>
      <dc:creator>Craig A Berry</dc:creator>
      <dc:date>2003-11-03T12:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: How copy file form detached process?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108364#M31050</link>
      <description>Hi Antoniov,&lt;BR /&gt;&lt;BR /&gt;This example might be a little too complicated to fit your needs and you might simplify it but here is a C program you might use to replace your lib$spawn call to a sys$creprc call and also using the persona system calls.&lt;BR /&gt;If you also have Visual C++ on your PC computer, you might also give it a try.&lt;BR /&gt;&lt;A href="http://h18000.www1.hp.com/support/asktima/communications/00A16286-AD980927-1C02A1.html" target="_blank"&gt;http://h18000.www1.hp.com/support/asktima/communications/00A16286-AD980927-1C02A1.html&lt;/A&gt;&lt;BR /&gt;Hoping this can help you in your daily job.&lt;BR /&gt;Regards,&lt;BR /&gt;Philippe</description>
      <pubDate>Tue, 04 Nov 2003 05:08:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108364#M31050</guid>
      <dc:creator>Vouters</dc:creator>
      <dc:date>2003-11-04T05:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: How copy file form detached process?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108365#M31051</link>
      <description>Hi Age,&lt;BR /&gt;I hasn't tought to LOGINOUT that's a good idea but my example doesn't work.&lt;BR /&gt;You can see attachment.&lt;BR /&gt;Where do I wrong?&lt;BR /&gt; &lt;BR /&gt;Bye&lt;BR /&gt;Antoniov&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Nov 2003 09:19:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108365#M31051</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2003-11-04T09:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: How copy file form detached process?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108366#M31052</link>
      <description>..and here there is the 2.nd attachment.&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Nov 2003 09:19:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108366#M31052</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2003-11-04T09:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: How copy file form detached process?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108367#M31053</link>
      <description>Hi Ian,&lt;BR /&gt;I've already user convert, mey be a good idea if I don't find a ready-to-use routine.&lt;BR /&gt;I never user backup routine, but some my oldest customer still works with OVMS 6.1 (yes the very old version) so, if is possible, I prefer use convert.&lt;BR /&gt; &lt;BR /&gt;Thanks&lt;BR /&gt;Antoniov&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Nov 2003 09:25:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108367#M31053</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2003-11-04T09:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: How copy file form detached process?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108368#M31054</link>
      <description>Hello Craig,&lt;BR /&gt;I've found IO_PERFORM.C; now I'm reading it to understand as working then I'll compile to try.&lt;BR /&gt;I'll post the result.&lt;BR /&gt; &lt;BR /&gt;Thanks&lt;BR /&gt;Antoniov&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Nov 2003 09:30:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108368#M31054</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2003-11-04T09:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: How copy file form detached process?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108369#M31055</link>
      <description>Hello Philippe,&lt;BR /&gt;same answer to Craig.&lt;BR /&gt; &lt;BR /&gt;To all&lt;BR /&gt;I believe does exist a simple solution but there nothing simple using computer.&lt;BR /&gt;Now I'm trying the prio .C examples.&lt;BR /&gt; &lt;BR /&gt;Thanx&lt;BR /&gt;Antoniov&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Nov 2003 09:34:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108369#M31055</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2003-11-04T09:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: How copy file form detached process?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108370#M31056</link>
      <description>Antoniov,&lt;BR /&gt;&lt;BR /&gt;I think the problem is that you do a RUN PROCESS and not a simple RUN IMAGE in the command procedure you give as input to LOGINOUT.EXE. So you create a detached process with a CLI which again create a new detached process without the CLI....&lt;BR /&gt; &lt;BR /&gt;If you have a look at my example the input file did only a simple RUN DETACHED.EXE(or whatever your application is called). That means you probably have to get the input from other source than in your RUN command.... Either by pointing a logical to your input file or similar and open it from within the application.&lt;BR /&gt; &lt;BR /&gt;Hope this helped?</description>
      <pubDate>Tue, 04 Nov 2003 09:36:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108370#M31056</guid>
      <dc:creator>Åge Rønning</dc:creator>
      <dc:date>2003-11-04T09:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: How copy file form detached process?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108371#M31057</link>
      <description>Age this is your example:&lt;BR /&gt;$! Create a command procedure that just has the RUN program command,&lt;BR /&gt;$! This procedure is the /INPUT for the RUN/DETACH command below.&lt;BR /&gt;$&lt;BR /&gt;$ create detach.com&lt;BR /&gt;$ RUN detach.exe&lt;BR /&gt;$!&lt;BR /&gt;$! Run loginout.exe as the image to create the detached process&lt;BR /&gt;$!&lt;BR /&gt;$ RUN/DETACH/ERROR=detach.err/OUTPUT=detach.out/INPUT=detach.com -&lt;BR /&gt;sys$system:loginout.exe&lt;BR /&gt;$!&lt;BR /&gt;=================================&lt;BR /&gt;Now this is my example:&lt;BR /&gt;$! This command procedure call another DCL command in detach mode&lt;BR /&gt;$ SET VERIFY&lt;BR /&gt;$ RUN/DETA/INP=detach.com/OUT=DETACH.LOG-&lt;BR /&gt;  SYS$SYSTEM:LOGINOUT&lt;BR /&gt;$ SET NOVERIFY&lt;BR /&gt;$ EXIT&lt;BR /&gt;------ Here DETACH.COM&lt;BR /&gt;$ RUN/INP=myfile.txt/OUT=detach1.LOG -&lt;BR /&gt;DETACHED.EXE&lt;BR /&gt;$ EXIT&lt;BR /&gt;===================================&lt;BR /&gt;Is seems similar.&lt;BR /&gt;If type @DETACH.COM process DETACHED.EXE stay alive and works fine.&lt;BR /&gt;If I type @TMP that call DETACH.COM, process DETACHED can't alive after TMP is closed; it seems DETACHED can live only if TMP lives.&lt;BR /&gt; &lt;BR /&gt;Any help will be apprecied.&lt;BR /&gt;Antoniov&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Nov 2003 09:57:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108371#M31057</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2003-11-04T09:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: How copy file form detached process?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108372#M31058</link>
      <description>Antoniov, &lt;BR /&gt;it's one BIG difference and that is I only run the image called detach.exe while you do a RUN/INPUT etc. Your command will create a new detached process, mine will not. See help RUN IMAGE and RUN PROCESS to see difference.&lt;BR /&gt; &lt;BR /&gt;I've attached a working example in Fortran(sorry, But havn't got one in C). If you got Fortran installed just download the attached file to your system and do a @file and it will create the files, run it and show the output file.</description>
      <pubDate>Tue, 04 Nov 2003 10:05:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108372#M31058</guid>
      <dc:creator>Åge Rønning</dc:creator>
      <dc:date>2003-11-04T10:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: How copy file form detached process?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108373#M31059</link>
      <description>Hi Age,&lt;BR /&gt;I've discovered the solution.&lt;BR /&gt;Process DETACH.COM have to stay alive to keep alive DETACHED.EXE. If I add a WAIT 00:01:00 before exit, DETACHED stay alive.&lt;BR /&gt;Solution is very complicated, but now I can't solve better.&lt;BR /&gt; &lt;BR /&gt;Bye&lt;BR /&gt;Antoniov&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Nov 2003 10:15:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108373#M31059</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2003-11-04T10:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: How copy file form detached process?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108374#M31060</link>
      <description>Bunny rabbit!&lt;BR /&gt;Problem solved!&lt;BR /&gt;Detach process use SYS$CREPRC system service to create a new detached subprocess that calls SYS$SYSTEM:LOGINOUT.EXE with appropriate parameters.&lt;BR /&gt;If somebody need source can post here!&lt;BR /&gt;&lt;BR /&gt;Age,&lt;BR /&gt;you get me idea for use LOGINOUT.&lt;BR /&gt;Post a message and I will assign you 8 pts!&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Nov 2003 13:34:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108374#M31060</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2003-11-04T13:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: How copy file form detached process?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108375#M31061</link>
      <description>Antoniov,&lt;BR /&gt;good to hear you solved your problem!&lt;BR /&gt;\Aage</description>
      <pubDate>Tue, 04 Nov 2003 14:15:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-copy-file-form-detached-process/m-p/3108375#M31061</guid>
      <dc:creator>Åge Rønning</dc:creator>
      <dc:date>2003-11-04T14:15:54Z</dc:date>
    </item>
  </channel>
</rss>

