Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dndir(1) [debian man page]

DNDIR(1)						      General Commands Manual							  DNDIR(1)

NAME
dndir - Display VMS directories SYNOPSIS
dndir [options] directory Options: [-sdpbolcntVh] [-w width] [-f filename width] DESCRIPTION
dndir displays the contents of directories on VMS systems. It behaves similarly to the ls command in that, by default, it will display filenames in columns across the screen if the output is a TTY or in a single column otherwise. Options can be added to the command line to display more information about the files or to adjust the column widths. The directory name should be in the usual transparent DECnet format of node"user password"::directory (see EXAMPLES ). If a wildcard speci- fication is omitted from the command line then *.*;* is assumed. As with the dncopy and dntype commands, the VMS file specification should be enclosed in single quote marks to protect special characters from the shell. OPTIONS
-s Shows the VMS file size in 512-byte blocks or bytes if the -b switch is present. -d Shows the file creation date. -p Shows the file protection. -o Shows the file's owner. -b Shows the file size in bytes rather than 512 byte blocks -l Long format - shows all of the above (including the file size in bytes) -t Show the total number of blocks in all the files listed. Note that this works even if you did not ask for the size to be displayed. -T connect timeout Specifies the maximum amount of time the command will wait to establish a connection with the remote node. a 0 here will cause it to wait forever. The default is 60 seconds -e Show (nearly) everything about the file. Like DIR/FULL -n Do not show the header line with the VMS directory name on it. This is useful for embedding dndir in a pipeline. -c Force the output to single column even on a TTY. -w N Sets the width of a column to be N characters. The default is 22. This option only has an effect on the brief (default) output to a TTY device. -f N Sets the width of the displayed filename to be N characters. The default is 18. If the filename is longer than this number then any requested file attributes will be displayed on the next line. -h -? Displays help for using the command. -V Show the version of the tools package that dncopy comes from. EXAMPLES
dndir 'myvax::' dndir 'tramp"christine pjc123"::[.pics.cats]*.jpg' dndir 'trisha"system -"::sys$system:*.exe' Prompts for a password rather than typing it on the command line. SEE ALSO
dntype(1), dncopy(1), dndel(1), dntask(1), dnsubmit(1), dnprint(1) DECnet utilities September 20 1998 DNDIR(1)

Check Out this Related Man Page

DNTASK(1)						      General Commands Manual							 DNTASK(1)

NAME
dntask - Execute VMS command procedures SYNOPSIS
dntask [options] command-procedure Options: [-biVh] [-t timeout] DESCRIPTION
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 direc- tory. 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. 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 like BACKUP in the task and backup to your Linux box. -i Interact with the command procedure. The command procedure must be written to be interactive by reading from and writing to SYS$NET. Specifying -i for a non-interactive command procedure will cause dntask to time-out waiting for input. Not specifying -i for an interactive command procedure will cause it to exit prematurely at the VMS end. -t timeout 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 then dntask will exit. The default is 60 seconds. If the value 0 is given then dntask will wait forever (or until you kill it). -T connect timeout Specifies the maximum amount of time the command will wait to establish a connection with the remote node. a 0 here will cause it to wait forever. The default is 60 seconds -h -? Displays help for using the command. -V Show the version of the tools package that dntask comes from. NOTES
The command procedure that you write MUST ALWAYS write something to SYS$NET or you will get a "connection refused" message. This is a limi- tation 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. 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. SEE ALSO
dntype(1), dndir(1), dncopy(1), dndel(1) DECnet utilities September 25 1998 DNTASK(1)
Man Page