From: wws@cc.bellcore.com (Wayne Scott)
Subject: RMS Remote execution ...
Date: Thu, 12 May 1994 17:35:18 GMT [thread overview]
Message-ID: <CppA6v.30o@walter.bellcore.com> (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.
reply other threads:[~1994-05-12 17:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox