Skip to content

Instantly share code, notes, and snippets.

@robertsinfosec
Last active January 19, 2025 03:52
Show Gist options
  • Save robertsinfosec/373f8fd4dc0a999436a6eaea9d1e3a30 to your computer and use it in GitHub Desktop.
Save robertsinfosec/373f8fd4dc0a999436a6eaea9d1e3a30 to your computer and use it in GitHub Desktop.
A default `LOGIN.COM` to start with when working with OpenVMS
$ LS :== "DIR"
$ LL :== "DIR/SIZE/DATE/OWNER"
$!
$ CD :== "SET DEFAULT"
$ DEFINE/PROCESS "~" SYS$LOGIN
$!
$ ADD_LOG_TO_FILE_OPERATIONS:
$!
$ BAC*KUP :=="BACKUP/LOG"
$ COPY :=="COPY/LOG"
$ CP :=="COPY/LOG"
$ DEL*ETE :=="DELETE/LOG"
$ RM :=="DELETE/LOG"
$ PURGE :=="PURGE/LOG"
$ MOVE :=="RENAME/LOG"
$ MV :=="RENAME/LOG"
$ REN*AME :=="RENAME/LOG"
$!
$ SET TERM/ANSI/INSERT
$
$! Dynamically set the prompt with hostname and username, removing spaces
$ NODENAME = F$EDIT(F$GETSYI("NODENAME"),"TRIM") ! Trim extra spaces
$ USERNAME = F$EDIT(F$GETJPI("","USERNAME"),"TRIM") ! Trim extra spaces
$ SET PROMPT="''NODENAME'_''USERNAME'> "
$!
$ NANO :=="EDIT"
$!
$! MAKE IT SO YOU CAN RUN REGULAR TCPIP COMMANDS (E.G. PING, NSLOOKUP, ETC)
$ @SYS$MANAGER:TCPIP$DEFINE_COMMANDS
$!
$ EXIT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment