From:	CRDGW2::CRDGW2::MRGATE::"SMTP::CRVAX.SRI.COM::RELAY-INFO-VAX"  5-DEC-1989 00:21
To:	MRGATE::"ARISIA::EVERHART"
Subj:	Re: DECnet TASK= activation from an Ultrix machine

Received: From UCBVAX.BERKELEY.EDU by GIZMO.SRI.COM with TCP; Mon,  4 DEC 89 16:42:04 PDT
Received: by ucbvax.Berkeley.EDU (5.61/1.40)
	id AA15241; Mon, 4 Dec 89 16:32:37 -0800
Received: from USENET by ucbvax.Berkeley.EDU with netnews
	for info-vax@kl.sri.com (info-vax@kl.sri.com)
	(contact usenet@ucbvax.Berkeley.EDU if you have questions)
Date: 5 Dec 89 00:07:09 GMT
From: shlump.nac.dec.com!michaud@decwrl.dec.com  (Jeff Michaud)
Organization: DEC
Subject: Re: DECnet TASK= activation from an Ultrix machine
Message-Id: <6595@shlump.nac.dec.com>
References: <10347@muvms3.bitnet>
Sender: info-vax-request@kl.sri.com
To: info-vax@kl.sri.com

> I'm trying to get the decnet "task=" to work from an Ultrix node
> to a VMS node.
> 
> quayle %73 > dcp - muvms3::'task=decw_server'


	Sorry, the node::"0=taskname" convention is a RMS-32ism on VMS.
	You are going to have to write a small C program to do the
	equiv.  For example:

		#include <stdio.h>
		#include <sys/types.h>
		#include <netdnet/dn.h>

		main(argc, argv)
		    int argc;
		    char *argv[];
		{
		    int sock;
		    char str[128];

		    sock = dnet_conn(
				argv[1], argv[2], SOCK_SEQPACKET,
				(u_char *)0, 0,
				(u_char *)0, (int *)0);

		    if( sock < 0 ) {
			nerror(argv[1]);
			exit(1);
		    }

		    while( gets(str) != NULL )
			write(sock, str, strlen(str));

		    /* now wait for server side to close connection */
		    while( read(sock, str, 1) > 0 )
			;

		    close(sock);
		    exit(0);
		}

	(ignore the use of gets() and the lack of checking the arg list and ...)

> My goal is to be able to (from the Ultrix node) run a .COM file on 
> a VMS node that will open DECterm and application DECwindows on the 
> Ultrix node.  I'm currently logging in to the VMS machine to activate
> the .COM files.

	You may want to look at "dcp -S" which may do enough of what you
	want that you won't have to write any code.

/--------------------------------------------------------------\
|Jeff Michaud    michaud@decwrl.dec.com  michaud@decvax.dec.com|
|DECnet-ULTRIX   #include <standard/disclaimer.h>              |
\--------------------------------------------------------------/

