Documents‎ > ‎

OpenVMS

posted Feb 6, 2009, 7:42 PM by Unknown user   [ updated Feb 6, 2009, 7:49 PM ]
Commonly Used Commands

    
 copycp
  
 renamemv
  
 deleterm/rmdir
  
 purge   
 set protection
chmod/chown
  
 create/directoymkdir
  
 deletermdir
  
 typecat
  
 show default
pwd  
 set default
cd
  
    
    
 type/page nla0:
type/page nl:
 clear  





File name specification

node::device:[directory]filename.type;version


Wild card

% single character
* 0 or more characters.
a%e                        a?e
as*                        as*


Defining a foreign command
awk := $USER3:[BACONEVI.ASE.TEST.AWK]awk.exe
aw*k := $USER3:[BACONEVI.ASE.TEST.AWK]awk.exe
a*wk := $USER3:[BACONEVI.ASE.TEST.AWK]awk.exe

deleting a directory tree with perl
perl -e "use File::Path; rmtree(['directory_name'],1,0);"

Simpel file commands

copy                                cp
rename                              mv
delete                              rm/rmdir
purge                               n/a
set protection                      chmod/chown
create/directory                    mkdir
type                                cat
show def                            pwd


OpenVMS                            Unix
--------------------------------------------------------
SHOW SYSTEM/OUTPUT=NLA0:           ps -ef > /dev/null
--------------------------------------------------------
TYPE/PAGE NLA0:                    clear
TYPE/PAGE NL:

ESC[0,7] = 27
WRITE SYS$OUTPUT "''ESC'[2J''ESC'[1;1H"
--------------------------------------------------------

define/user sys$output t1.out      ls /dev > t1.out
show devices

--------------------------------------------------------
define/user sys$input a.c          cat < a.c
type sys$input

--------------------------------------------------------
pipe show devices | search sys$input DQA     ls -l /dev | grep DQA

--------------------------------------------------------
pipe show users | search sys$input bacon     who | grep bacon

--------------------------------------------------------
show system                                  ps -ef

--------------------------------------------------------
write sys$output "hello world"               echo "hello world"

show logical sys$login                       echo $HOME
    
in fact, sys$login is a logical name while HOME is the environment variable.
An environment variable is closer to the symbol in OpenVMS. but a logical name
can not be printed with the write command as in write sys$output sys$login.



---------------------------------------------------
/dev/null       NLA0:
/bin            SYS$SYSTEM:
/tmp            SYS$SCRATCH:


--------------------------------------------------------
File Descriptor  OpenVMS Logical  Meaning
0  SYS$INPUT  Standard input
1  SYS$OUTPUT  Standard output
2  SYS$ERROR  Standard error



-----------------------------------------------------------
Text Library

Text Library for C Run-Time Library
SYS$LIBRARY:DECC$RTLDEF.TLB

LIBRARY/LIST SYS$LIBRARY:DECC$RTLDEF.TLB
LIBRARY/LIST/FULL SYS$LIBRARY:DECC$RTLDEF.TLB
LIBRARY/LIST=RTLDEF.LIS SYS$LIBRARY:DECC$RTLDEF.TLB

LIBRARY/EXTRACT=*/OUTPUT=RTLDEF.OUT SYS$LIBRARY:DECC$RTLDEF.TLB
LIBRARY/EXTRACT=STDIO/OUTPUT=STDIO.H SYS$LIBRARY:DECC$RTLDEF.TLB
LIBRARY/EXTRACT=(STDIO,STDLIB)/OUTPUT=STDIOLIB.H SYS$LIBRARY:DECC$RTLDEF.TLB

Comments