<?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: Looking for help:How to let a process write output to a file? in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/looking-for-help-how-to-let-a-process-write-output-to-a-file/m-p/3861660#M34781</link>
    <description>Did you check the process termination status in the accounting file?&lt;BR /&gt;&lt;BR /&gt;A process has two output channels: 'SYS$OUTPUT' and 'SYS$ERROR'.&lt;BR /&gt;I suggest you assign the ERROR channel to the same file - maybe you find additional help in there.</description>
    <pubDate>Wed, 13 Sep 2006 01:31:25 GMT</pubDate>
    <dc:creator>Uwe Zessin</dc:creator>
    <dc:date>2006-09-13T01:31:25Z</dc:date>
    <item>
      <title>Looking for help:How to let a process write output to a file?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/looking-for-help-how-to-let-a-process-write-output-to-a-file/m-p/3861659#M34780</link>
      <description>Hi all,&lt;BR /&gt;   I have a C program which executes some ".com" procedures periodically (using system(char *string)function).Now I start this program as a process (using sys$creprc).What should I do to let this process write it's "printf" messages and procedure execution messages into a disk file?&lt;BR /&gt;I tried to specify an output file in the sys$creprc function but got nothing but an empty file.</description>
      <pubDate>Wed, 13 Sep 2006 01:24:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/looking-for-help-how-to-let-a-process-write-output-to-a-file/m-p/3861659#M34780</guid>
      <dc:creator>Z.K.</dc:creator>
      <dc:date>2006-09-13T01:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for help:How to let a process write output to a file?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/looking-for-help-how-to-let-a-process-write-output-to-a-file/m-p/3861660#M34781</link>
      <description>Did you check the process termination status in the accounting file?&lt;BR /&gt;&lt;BR /&gt;A process has two output channels: 'SYS$OUTPUT' and 'SYS$ERROR'.&lt;BR /&gt;I suggest you assign the ERROR channel to the same file - maybe you find additional help in there.</description>
      <pubDate>Wed, 13 Sep 2006 01:31:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/looking-for-help-how-to-let-a-process-write-output-to-a-file/m-p/3861660#M34781</guid>
      <dc:creator>Uwe Zessin</dc:creator>
      <dc:date>2006-09-13T01:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for help:How to let a process write output to a file?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/looking-for-help-how-to-let-a-process-write-output-to-a-file/m-p/3861661#M34782</link>
      <description>Uwe,&lt;BR /&gt;  thankyou for your quick reply.&lt;BR /&gt;  I used the DCL command stop to stop the process.&lt;BR /&gt;----------------------------&lt;BR /&gt;Username:          XTDL              UIC:               [DEFAULT]&lt;BR /&gt;Account:                             Finish time:       13-SEP-2006 14:45:54.56&lt;BR /&gt;Process ID:        20200C86          Start time:        13-SEP-2006 14:26:38.11&lt;BR /&gt;Owner ID:                            Elapsed time:                0 00:19:16.44&lt;BR /&gt;Terminal name:                       Processor time:              0 00:00:00.01&lt;BR /&gt;Remote node addr:                    Priority:          15&lt;BR /&gt;Remote node name:                    Privilege &amp;lt;31-00&amp;gt;: FFFFFFFF&lt;BR /&gt;Remote ID:                           Privilege &amp;lt;63-32&amp;gt;: FFFFFFFF&lt;BR /&gt;Remote full name:&lt;BR /&gt;Posix UID:         -2                Posix GID:         -2 (%XFFFFFFFE)&lt;BR /&gt;Queue entry:                         Final status code: 00002BD4&lt;BR /&gt;Queue name:&lt;BR /&gt;Job name:&lt;BR /&gt;Final status text: %SYSTEM-F-EXITFORCED, forced exit of image or process by SYS$&lt;BR /&gt;Page faults:               97        Direct IO:                  7&lt;BR /&gt;Page fault reads:           9        Buffered IO:               20&lt;BR /&gt;Peak working set:        1824        Volumes mounted:            0&lt;BR /&gt;Peak page file:        164864        Images executed:            1&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Sep 2006 01:54:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/looking-for-help-how-to-let-a-process-write-output-to-a-file/m-p/3861661#M34782</guid>
      <dc:creator>Z.K.</dc:creator>
      <dc:date>2006-09-13T01:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for help:How to let a process write output to a file?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/looking-for-help-how-to-let-a-process-write-output-to-a-file/m-p/3861662#M34783</link>
      <description>Z.K.,&lt;BR /&gt;&lt;BR /&gt;[sys$creprc]&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;I tried to specify an output file in the sys$creprc function but got nothing but an empty file.&lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;You did pass the 'output' and 'error' parameters to sys$creprc as fixed-length descriptors pointing to the output files, or didn't you?&lt;BR /&gt;&lt;BR /&gt;Please show us the call with enough context to give us some information to work with.&lt;BR /&gt;&lt;BR /&gt;cu,&lt;BR /&gt;  Martin</description>
      <pubDate>Wed, 13 Sep 2006 02:10:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/looking-for-help-how-to-let-a-process-write-output-to-a-file/m-p/3861662#M34783</guid>
      <dc:creator>Martin Vorlaender</dc:creator>
      <dc:date>2006-09-13T02:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for help:How to let a process write output to a file?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/looking-for-help-how-to-let-a-process-write-output-to-a-file/m-p/3861663#M34784</link>
      <description>Hi Martin,&lt;BR /&gt;   here is my codes.&lt;BR /&gt;$ type creprc.c&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;STRING.H&gt;&lt;BR /&gt;#include &lt;DESCRIP.H&gt;&lt;BR /&gt;#include &lt;STSDEF.H&gt;&lt;BR /&gt;#include &lt;SSDEF.H&gt;&lt;BR /&gt;#include &lt;JPIDEF.H&gt;&lt;BR /&gt;#include &lt;CVTDEF.H&gt;&lt;BR /&gt;#include &lt;IODEF.H&gt;&lt;BR /&gt;#include &lt;RMS.H&gt;&lt;BR /&gt;#include &lt;LIBWAITDEF.H&gt;&lt;BR /&gt;#include &lt;STARLET.H&gt;&lt;BR /&gt;#include &lt;PQLDEF.H&gt;&lt;BR /&gt;#pragma member_alignment save&lt;BR /&gt;#pragma nomember_alignment&lt;BR /&gt;typedef struct&lt;BR /&gt;{&lt;BR /&gt;        char quota;&lt;BR /&gt;        int  value;&lt;BR /&gt;}quota_entry_t;&lt;BR /&gt;#pragma member_alignment restore&lt;BR /&gt;struct dsc$descriptor_s descrBuild( char *name );&lt;BR /&gt;main()&lt;BR /&gt;{&lt;BR /&gt;        unsigned int     pid;&lt;BR /&gt;        char    image[64];&lt;BR /&gt;        char    input[64];&lt;BR /&gt;        char    output[64];&lt;BR /&gt;        char    error[64];&lt;BR /&gt;        unsigned int     prvnam[5];&lt;BR /&gt;        quota_entry_t quota_array[]={{PQL$_BYTLM,128000},{PQL$_ASTLM,10},&lt;BR /&gt;                                     {PQL$_WSQUOTA,4096},{PQL$_LISTEND}};&lt;BR /&gt;        char    quonam[4];&lt;BR /&gt;        unsigned int     quoval[4];&lt;BR /&gt;        char    prcnam[15];&lt;BR /&gt;        unsigned int     baspri;&lt;BR /&gt;        unsigned int     uic;&lt;BR /&gt;        unsigned int     stsflg;&lt;BR /&gt;        int     status;&lt;BR /&gt;//        int     prvadr[2];&lt;BR /&gt;        long long prvadr;&lt;BR /&gt;        struct dsc$descriptor_s img_descr;&lt;BR /&gt;        struct dsc$descriptor_s inp_descr;&lt;BR /&gt;        struct dsc$descriptor_s out_descr;&lt;BR /&gt;        struct dsc$descriptor_s err_descr;&lt;BR /&gt;        struct dsc$descriptor_s prc_descr;&lt;BR /&gt; &lt;BR /&gt;        strcpy(image,"$1$dga1:[oracle.schedule_bck]db_bck_sch.exe");&lt;BR /&gt;        strcpy(input,"sys$input");&lt;BR /&gt;        strcpy(output,"$1$dga1:[oracle.schedule_bck]db_bck_sch.out");&lt;BR /&gt;        strcpy(error,"$1$dga1:[oracle.schedule_bck]db_bck_sch.out");&lt;BR /&gt;        strcpy(prcnam,"DB_BCK_SCH");&lt;BR /&gt;        prvadr=0xffffffffffffffff;&lt;BR /&gt;        uic=0277;                               //uic use octal number&lt;BR /&gt;        uic&amp;lt;&amp;lt;=16;&lt;BR /&gt;        uic=uic|0200;&lt;BR /&gt;        baspri=15;&lt;BR /&gt;        stsflg=0x8;&lt;BR /&gt; &lt;BR /&gt;        img_descr=descrBuild(image);&lt;BR /&gt;        inp_descr=descrBuild(input);&lt;BR /&gt;        out_descr=descrBuild(output);&lt;BR /&gt;        err_descr=descrBuild(error);&lt;BR /&gt;        prc_descr=descrBuild(prcnam);&lt;BR /&gt; &lt;BR /&gt;        status=sys$creprc(      &amp;amp;pid,&lt;BR /&gt;                                &amp;amp;img_descr,&lt;BR /&gt;                                &amp;amp;inp_descr,&lt;BR /&gt;                                &amp;amp;out_descr,&lt;BR /&gt;//                              0,&lt;BR /&gt;                                &amp;amp;err_descr,&lt;BR /&gt;                                &amp;amp;prvadr,&lt;BR /&gt;                                quota_array,&lt;BR /&gt;//                              0,&lt;BR /&gt;                                &amp;amp;prc_descr,&lt;BR /&gt;                                baspri,&lt;BR /&gt;                                uic,&lt;BR /&gt;                                0,&lt;BR /&gt;//                                stsflg);&lt;BR /&gt;                                0);&lt;BR /&gt;        printf("sys$creprc execution status:%d\n",status);&lt;BR /&gt;}&lt;BR /&gt;struct dsc$descriptor_s descrBuild( char *name )&lt;BR /&gt;{&lt;BR /&gt;        struct dsc$descriptor_s  descr;&lt;BR /&gt; &lt;BR /&gt;        descr.dsc$w_length = strlen(name);&lt;BR /&gt;        descr.dsc$b_dtype = DSC$K_DTYPE_T;&lt;BR /&gt;        descr.dsc$b_class = DSC$K_CLASS_S;&lt;BR /&gt;        descr.dsc$a_pointer = name;&lt;BR /&gt; &lt;BR /&gt;        return (descr);&lt;BR /&gt;}&lt;/PQLDEF.H&gt;&lt;/STARLET.H&gt;&lt;/LIBWAITDEF.H&gt;&lt;/RMS.H&gt;&lt;/IODEF.H&gt;&lt;/CVTDEF.H&gt;&lt;/JPIDEF.H&gt;&lt;/SSDEF.H&gt;&lt;/STSDEF.H&gt;&lt;/DESCRIP.H&gt;&lt;/STRING.H&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Wed, 13 Sep 2006 02:50:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/looking-for-help-how-to-let-a-process-write-output-to-a-file/m-p/3861663#M34784</guid>
      <dc:creator>Z.K.</dc:creator>
      <dc:date>2006-09-13T02:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for help:How to let a process write output to a file?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/looking-for-help-how-to-let-a-process-write-output-to-a-file/m-p/3861664#M34785</link>
      <description>Since the ".com" procedures my process executes does a lot of job,I wonder what quotas I have to set for this process.&lt;BR /&gt;&lt;BR /&gt;Please take a look at this:&lt;BR /&gt;SYSGEN&amp;gt;  SHOW PQL*&lt;BR /&gt;Parameter Name           Current    Default     Min.      Max.     Unit  Dynamic&lt;BR /&gt;--------------           -------    -------    -------   -------   ----  -------&lt;BR /&gt;PQL_DASTLM                     24         24        -1         -1 Ast        D&lt;BR /&gt;PQL_MASTLM                    100          4        -1         -1 Ast        D&lt;BR /&gt;PQL_DBIOLM                     32         32        -1         -1 I/O        D&lt;BR /&gt;PQL_MBIOLM                    100          4        -1         -1 I/O        D&lt;BR /&gt;PQL_DBYTLM                  65536      65536        -1         -1 Bytes      D&lt;BR /&gt;PQL_MBYTLM                1000000       1024        -1         -1 Bytes      D&lt;BR /&gt;PQL_DCPULM                      0          0        -1         -1 10Ms       D&lt;BR /&gt;PQL_MCPULM                      0          0        -1         -1 10Ms       D&lt;BR /&gt;PQL_DDIOLM                     32         32        -1         -1 I/O        D&lt;BR /&gt;PQL_MDIOLM                    100          4        -1         -1 I/O        D&lt;BR /&gt;PQL_DFILLM                    128        128        -1         -1 Files      D&lt;BR /&gt;PQL_MFILLM                   2048          2        -1         -1 Files      D&lt;BR /&gt;PQL_DPGFLQUOTA              65536      65536        -1         -1 Pagelets   D&lt;BR /&gt; internal value              4096       4096         0         -1 Pages      D&lt;BR /&gt;PQL_MPGFLQUOTA            2000000       2048        -1         -1 Pagelets   D&lt;BR /&gt; internal value            125000        128       128         -1 Pages      D&lt;BR /&gt;PQL_DPRCLM                     32         32        -1         -1 Processes  D&lt;BR /&gt;PQL_MPRCLM                     10          0        -1         -1 Processes  D&lt;BR /&gt;PQL_DTQELM                     16         16        -1         -1 Timers     D&lt;BR /&gt;PQL_MTQELM                    100          0        -1         -1 Timers     D&lt;BR /&gt;PQL_DWSDEFAULT               5936       1024        -1         -1 Pagelets&lt;BR /&gt; internal value               371         64         0         -1 Pages&lt;BR /&gt;PQL_MWSDEFAULT               5936        512        -1         -1 Pagelets&lt;BR /&gt; internal value               371         32        32         -1 Pages&lt;BR /&gt;PQL_DWSQUOTA                11872       2048        -1         -1 Pagelets   D&lt;BR /&gt; internal value               742        128         0         -1 Pages      D&lt;BR /&gt;PQL_MWSQUOTA                11872       1024        -1         -1 Pagelets   D&lt;BR /&gt; internal value               742         64        64         -1 Pages      D&lt;BR /&gt;PQL_DWSEXTENT              786432      16384        -1         -1 Pagelets   D&lt;BR /&gt; internal value             49152       1024         0         -1 Pages      D&lt;BR /&gt;PQL_MWSEXTENT              786432       2048        -1         -1 Pagelets   D&lt;BR /&gt; internal value             49152        128       128         -1 Pages      D&lt;BR /&gt;PQL_DENQLM                    128        128        -1         -1 Locks      D&lt;BR /&gt;PQL_MENQLM                   8192         30        -1         -1 Locks      D&lt;BR /&gt;PQL_DJTQUOTA                 4096       4096        -1         -1 Bytes      D&lt;BR /&gt;PQL_MJTQUOTA                 8192          0        -1         -1 Bytes      D&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Sep 2006 03:05:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/looking-for-help-how-to-let-a-process-write-output-to-a-file/m-p/3861664#M34785</guid>
      <dc:creator>Z.K.</dc:creator>
      <dc:date>2006-09-13T03:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for help:How to let a process write output to a file?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/looking-for-help-how-to-let-a-process-write-output-to-a-file/m-p/3861665#M34786</link>
      <description>Z.K.,&lt;BR /&gt;&lt;BR /&gt;hmmm...&lt;BR /&gt;&lt;BR /&gt;the only nit I can find is that PQL$_LISTEND doesn't have an accompanying value, i.e. {PQL$_LISTEND} instead of {PQL$_LISTEND,0}.&lt;BR /&gt;&lt;BR /&gt;Everything else looks right.&lt;BR /&gt;&lt;BR /&gt;Do you have a return status of sys$creprc (i.e. when the program ends regularly, and not by STOP)?&lt;BR /&gt;&lt;BR /&gt;cu,&lt;BR /&gt;  Martin&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Sep 2006 03:12:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/looking-for-help-how-to-let-a-process-write-output-to-a-file/m-p/3861665#M34786</guid>
      <dc:creator>Martin Vorlaender</dc:creator>
      <dc:date>2006-09-13T03:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for help:How to let a process write output to a file?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/looking-for-help-how-to-let-a-process-write-output-to-a-file/m-p/3861666#M34787</link>
      <description>Martin,&lt;BR /&gt;  the C program Creprc.c I pasted before runs only once,it's job is to start another C program  as a process which executes some ".com" procedures periodically.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;the only nit I can find is that PQL$_LISTEND doesn't have an accompanying value, i.e. {PQL$_LISTEND} instead of {PQL$_LISTEND,0}.&lt;BR /&gt;&lt;BR /&gt;I've tried this, they doesn't have any difference.&lt;BR /&gt;&lt;BR /&gt;The return status of sys$creprc is "1",which means ss$_normal.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Sep 2006 03:30:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/looking-for-help-how-to-let-a-process-write-output-to-a-file/m-p/3861666#M34787</guid>
      <dc:creator>Z.K.</dc:creator>
      <dc:date>2006-09-13T03:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for help:How to let a process write output to a file?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/looking-for-help-how-to-let-a-process-write-output-to-a-file/m-p/3861667#M34788</link>
      <description>Z.K.&lt;BR /&gt;&lt;BR /&gt;  I'm not sure I understand your problem, perhaps the issue is you want to be able to see the output in the file WHILE THE PROCESS IS RUNNING? &lt;BR /&gt;&lt;BR /&gt;That's a bit tricky as, by default the SYS$OUTPUT channel for a process is not shared. However, it is possible to send the output of an arbitrary procedure or program to a shared file with the right DCL. The trick is to open a process permanent file with shared write access. Try this:&lt;BR /&gt;&lt;BR /&gt;DET.COM&lt;BR /&gt;$ IF p1.NES."" THEN GOTO RUNIT&lt;BR /&gt;$ OPEN/WRITE/SHARE SHRLOG SYS$LOGIN:LOGFILE.LOG&lt;BR /&gt;$ @'F$ENVIRONMENT("PROCEDURE")/OUTPUT=SHRLOG RUNIT&lt;BR /&gt;$ CLOSE SHRLOG&lt;BR /&gt;$ EXIT&lt;BR /&gt;$ RUNIT: RUN cprogram&lt;BR /&gt;$ EXIT&lt;BR /&gt;&lt;BR /&gt;Now, execute your detached process like this:&lt;BR /&gt;&lt;BR /&gt;$ RUN/DETACHED/AUTHORIZE SYS$SYSTEM:LOGINOUT -&lt;BR /&gt;/INPUT=DET.COM/OUTPUT=DET.LOG&lt;BR /&gt;&lt;BR /&gt;(or equivalent $CREPRC call)&lt;BR /&gt;&lt;BR /&gt;Any output from your cprogram will be directed to the logfile SYS$LOGIN:LOGFILE.LOG. By default the EOF marker will NOT be updated, so you won't be able to see anything, BUT if you want to reset the EOF to the current end of file, you just need to request shared write access to the file, so:&lt;BR /&gt;&lt;BR /&gt;$ OPEN/APPEND/SHARE LOG SYS$LOGIN:LOGFILE.LOG&lt;BR /&gt;$ CLOSE LOG&lt;BR /&gt;&lt;BR /&gt;will make the contents of the file up to the time of the CLOSE visible. From then on normal access will show the contents of the log file. For example:&lt;BR /&gt;&lt;BR /&gt;$ TYPE/TAIL SYS$LOGIN:LOGFILE.LOG&lt;BR /&gt;&lt;BR /&gt;Repeat the OPEN &amp;amp; CLOSE sequence to update the EOF when required.</description>
      <pubDate>Wed, 13 Sep 2006 04:07:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/looking-for-help-how-to-let-a-process-write-output-to-a-file/m-p/3861667#M34788</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2006-09-13T04:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for help:How to let a process write output to a file?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/looking-for-help-how-to-let-a-process-write-output-to-a-file/m-p/3861668#M34789</link>
      <description>because the C complier naturally aligns structures and the quota structure is not you need&lt;BR /&gt;pragma member_alignment save&lt;BR /&gt;#pragma nomember_alignment&lt;BR /&gt;typedef struct&lt;BR /&gt;  {&lt;BR /&gt;  char Quota;&lt;BR /&gt;  int Value;&lt;BR /&gt;  } QUOTA_ENTRY_T;&lt;BR /&gt;#pragma member_alignment restore&lt;BR /&gt;&lt;BR /&gt;so of thing.&lt;BR /&gt;&lt;BR /&gt;You may also find having a termination mailbox helpful as it is possible for the process to be created successfully and then exit immediately. &lt;BR /&gt;&lt;BR /&gt;you are specifing SYS$INPUT as the name of the input file. Is this correct?&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Sep 2006 04:11:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/looking-for-help-how-to-let-a-process-write-output-to-a-file/m-p/3861668#M34789</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2006-09-13T04:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for help:How to let a process write output to a file?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/looking-for-help-how-to-let-a-process-write-output-to-a-file/m-p/3861669#M34790</link>
      <description>Thanks John,&lt;BR /&gt;  I did learn a lot from your reply.&lt;BR /&gt;  My main objective is to start the process which will do some job (like backup,delete old backups,etc. using function int system(char *string))periodically,and write the execution logs into a disk file.But all I got was neither the job done nor the logs written in the disk file I specified.Someone told me the quotas caused the failure,but I don't know what quotas should I change to make it success.&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Sep 2006 04:28:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/looking-for-help-how-to-let-a-process-write-output-to-a-file/m-p/3861669#M34790</guid>
      <dc:creator>Z.K.</dc:creator>
      <dc:date>2006-09-13T04:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for help:How to let a process write output to a file?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/looking-for-help-how-to-let-a-process-write-output-to-a-file/m-p/3861670#M34791</link>
      <description>Z.K.,&lt;BR /&gt;&lt;BR /&gt;you could try &lt;A href="http://vms.pdv-systeme.de/users/martinv/quota_monitor.com" target="_blank"&gt;http://vms.pdv-systeme.de/users/martinv/quota_monitor.com&lt;/A&gt; to watch the process quotas, to find the one that eventually hits the ceiling.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;  Martin</description>
      <pubDate>Wed, 13 Sep 2006 04:35:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/looking-for-help-how-to-let-a-process-write-output-to-a-file/m-p/3861670#M34791</guid>
      <dc:creator>Martin Vorlaender</dc:creator>
      <dc:date>2006-09-13T04:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for help:How to let a process write output to a file?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/looking-for-help-how-to-let-a-process-write-output-to-a-file/m-p/3861671#M34792</link>
      <description>Quickly scanning the code, I see a main reason why You see nothing:&lt;BR /&gt;&lt;BR /&gt;the process created is running an image and HAS NO CLI (DCL).&lt;BR /&gt;So a "system(somecommand);" call simply fails. And if the process which does this is not checking the status and writes a message, nothing is written at all.&lt;BR /&gt;&lt;BR /&gt;You have to create a process running the image &lt;BR /&gt; SYS$SYSTEM:LOGINOUT.EXE, and specify as input some DCL command-file which runs your image, and the logfile as sys$output and sys$error.&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Sep 2006 10:10:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/looking-for-help-how-to-let-a-process-write-output-to-a-file/m-p/3861671#M34792</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2006-09-13T10:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for help:How to let a process write output to a file?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/looking-for-help-how-to-let-a-process-write-output-to-a-file/m-p/3861672#M34793</link>
      <description>Ian,&lt;BR /&gt;&amp;gt;&amp;gt; because the C complier naturally aligns structures and the quota structure is not you need&lt;BR /&gt;pragma member_alignment save&lt;BR /&gt;#pragma nomember_alignment&lt;BR /&gt;...&lt;BR /&gt;#pragma member_alignment restore&lt;BR /&gt;&lt;BR /&gt;I did specified these lines for the quota structure.&lt;BR /&gt;&lt;BR /&gt;In the "OpenVMS System Services Reference Manual", I found the input parameter specifies an "Equivalence name to be associated with the logical name SYS$INPUT in the&lt;BR /&gt;logical name table of the created process".I used to set the "image" parameter for the image I want to start as a process,not sys$system:loginout.exe.&lt;BR /&gt;&lt;BR /&gt;Seems Joseph resolved my question.&lt;BR /&gt;Thank John,Ian,Martin and Joseph!&lt;BR /&gt;Thank everyone!</description>
      <pubDate>Wed, 13 Sep 2006 20:37:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/looking-for-help-how-to-let-a-process-write-output-to-a-file/m-p/3861672#M34793</guid>
      <dc:creator>Z.K.</dc:creator>
      <dc:date>2006-09-13T20:37:05Z</dc:date>
    </item>
  </channel>
</rss>

