DNTASK(1) | General Commands Manual | DNTASK(1) |
dntask - Execute VMS command procedures
dntask [options] command-procedure
Options:
[-biVh] [-t timeout]
dntask runs command procedures on a remote VMS system.
It takes advantage of the ability of the TASK object in DECnet to execute an
arbitrary command procedure located in the users' login directory. The
remote command procedure should output to SYS$NET rather than SYS$OUTPUT and
(if interactive) read it's input also from SYS$NET.
The VMS equivalent of the (non-interactive version) command would be
TYPE node::"TASK=command-procedure"
For some example command procedures see the tasks directory of the
source distribution. show_system.com is a non-interactive task that
simply displays the output of the VMS "SHOW SYSTEM" command on
standard output. interactive.com is an interactive task that allows
you to enter DCL commands to be executed on the host VMS system. Be careful
which commands you enter because they will expect input to come from the
network connection, for instance programs that do screen orientated input or
output will almost certainly not work.
Task names can be up to 16 characters in length because that's the limit on
DECnet object names.
The command procedure that you write MUST ALWAYS write something
to SYS$NET or you will get a "connection refused" message. This is
a limitation with DECnet objects.
eg. If you write a task to start a remote DECterm it would look something like
this:
$ remnode=f$element(0, ":",
"''f$trnlnm("sys$rem_node")'")
$ set display/create/node='remnode'
$ create/term/detach
$ def/nolog sys$output sys$net
$ write sys$output "DECterm started on ''remnode'"
$ exit
The "write" command near the end is essential.
dntask 'myvax::show_system'
dndir -i 'tramp"christine pjc123"::interactive'
dndir -i 'tramp"christine -"::interactive'
Specifying "-" in the password field will prompt for the password.
September 25 1998 | DECnet utilities |