Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* RMS Remote execution ...
@ 1994-05-12 17:35 Wayne Scott
  0 siblings, 0 replies; only message in thread
From: Wayne Scott @ 1994-05-12 17:35 UTC (permalink / raw)



Hi Folks:

	I'm trying to understand some old code I have to work with.
One of the things it does is create a .COM procedure, then remotely
execute it through RMS.  I've been pouring through the RMS books
but cannot find a certain syntax I see in the code.  It puts a
"TASK=" in the string assigned to fab$l_fna.  Here's a snippet:

======================================================================
    char comfile_buf[80+1];
    struct FAB comfile_fab;
    struct RAB comfile_rab;
    char task_name[256];
 
    long task_status;
 
    long status;
    long tmp;
 
    /* Initialize RMS structures */
 
    comfile_fab = cc$rms_fab;
 
    comfile_rab = cc$rms_rab;
    comfile_rab.rab$l_fab = &comfile_fab;
    comfile_rab.rab$l_ubf = comfile_buf;
    comfile_rab.rab$w_usz = sizeof(comfile_buf);
 
    /* Create task string */
 
       sprintf(task_name,"%s::\"TASK=%s\"",node,comfile);
 				^^^^^
    /* Start the remote task by opening comfile_fab */
 
    comfile_fab.fab$l_fna = task_name;
    comfile_fab.fab$b_fns = strlen(task_name);
    status = sys$open(&comfile_fab);
    if (!(status&1))
        if (comfile_fab.fab$l_stv != 0)
            return(comfile_fab.fab$l_stv);
        else
            return(status);
 
    status = sys$connect(&comfile_rab);
======================================================================


I CANNOT find any references that mention the need for the "TASK=" in
the string.  Can someone point me to a reference,
or explain what's going on here?

Thanks,
Wayne
-- 
----------------------------------------------
	wws@cc.bellcore.com
I'm just a soul whose intentions are good,
Oh Lord, please don't let me be misunderstood.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1994-05-12 17:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-05-12 17:35 RMS Remote execution Wayne Scott

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox