DNTASK(1)
π DNTASK(1) β the dntask girlies' guide π
okay so bestie, welcome to the General Commands Manual section for dntask, and honestly? she's a whole vibe. let's get into it π«Ά
β¨ NAME β¨
dntask β Execute VMS command procedures π
πΈ SYNOPSIS πΈ
dntask [options] command-procedure
Options:
[-biVh] [-t timeout]
π¦ DESCRIPTION π¦
so dntask runs command procedures on a remote VMS system. it's giving "long distance relationship but make it networking" π
the way it works is she takes advantage of the ability of the TASK object in DECnet to execute an arbitrary command procedure located in the users' login directory. iconic behavior, no notes.
the remote command procedure should output to SYS$NET rather than SYS$OUTPUT and (if interactive) read it's input also from SYS$NET. like, that's the whole assignment. 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. π yeah. screen stuff? she said no.
task names can be up to 16 characters in length because that's the limit on DECnet object names. periodt. that's the ceiling, bestie.
π OPTIONS π
-bβ send the output in binary mode. by default the output from the DECnet task is assumed to be records. this option sends the data "as is" so you can put commands likeBACKUPin the task and backup to your Linux box. lowkey iconic π₯-iβ interact with the command procedure. the command procedure must be written to be interactive by reading from and writing toSYS$NET. specifying-ifor a non-interactive command procedure will causedntaskto time-out waiting for input. not specifying-ifor an interactive command procedure will cause it to exit prematurely at the VMS end. pick your struggle, bestie π«-ttimeout β specifies the timeout in seconds for interactive command procedures. if no input has been received from either standard input or the VMS end in this time thendntaskwill exit. the default is 60 seconds. if the value0is given thendntaskwill wait forever (or until you kill it). forever girl energy, honestly π-Tconnect timeout β specifies the maximum amount of time the command will wait to establish a connection with the remote node. a0here will cause it to wait forever. the default is 60 seconds-h,-?β displays help for using the command. she's helpful like that π-Vβ show the version of the tools package thatdntaskcomes from. slay, version check β¨
π§ NOTES π§
the command procedure that you write MUST ALWAYS write something toSYS$NETor you will get a"connection refused"message. this is a limitation with DECnet objects. no cap, this is not optional, bestie π€
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. like, do not skip her. she is the main character. π
π EXAMPLES π
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. cute little security moment π
π SEE ALSO π
dntype(1), dndir(1), dncopy(1), dndel(1)
go read those too, they're the friend group π«Ά
okay that's the whole page, bestie!! this one comes from the DECnet utilities crew and the page is dated September 25 1998 β retro but still serving looks πβ¨π bye!!
π¦ where this page comes from
- ubuntu jammy: dnet-progs 2.65build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms