Puppy DECTERM
Posted: Sun 04 Nov 2012, 20:57
I recently had the idea to bring the old VMS commands to Puppy Linux and felt like posting about the project.
I started things off with the simple alias command to get it off the ground.
-----
EDIT: 11:44:16 AM 11/05/12 Added a few more aliases.
EDIT: 09:52:20 PM 11/04/12 Very slowly moving along with this. I used the if statement and some functions to make the commands with more than one word work. (I have yet too add them all)
This is a separate files that is linked into the .bashrc.
This is just that start to the project. I'll soon be adding scripts to give it more of a DECTERM feel.
All contributions are welcome!
I started things off with the simple alias command to get it off the ground.
-----
EDIT: 11:44:16 AM 11/05/12 Added a few more aliases.
EDIT: 09:52:20 PM 11/04/12 Very slowly moving along with this. I used the if statement and some functions to make the commands with more than one word work. (I have yet too add them all)
Code: Select all
#!/bin/sh
PS1="$ "
echo "+---------------------------------------+"
echo "|OpenVMS commands now work in Linux! |"
echo "|For SHOW and SET use lowercase letters |"
echo "|Enjoy! |"
echo "+---------------------------------------+"
echo
echo "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"
echo
DECERROR()
{
echo "%DCL-W-IVVERB, unrecognized command verb - check validity and spelling."
}
show()
{
if [[ $@ == "default" ]]
then
pwd
elif [[ $@ == "device" ]]
then
df
elif [[ $@ == "logical" ]]
then
printenv
elif [[ $@ == "process" ]]
then
ps aux
elif [[ $@ == "/queue" ]]
then
lpq
elif [[ $@ == "status" ]]
then
time
elif [[ $@ == "time" ]]
then
date
elif [[ $@ == "users" ]]
then
whoami
elif [[ $@ == "system" ]]
then
htop
else
DECERROR
fi
}
alias append='cat'
alias dir='ls'
alias copy='cp'
alias delete='rm'
alias create='>>'
alias edit='nano'
alias cls='reset'
alias stop='kill'
alias print='lpr'
alias mail='defaultemail'
alias backup='tar'
alias dump='od'
alias exchange='dd'
Code: Select all
. /root/.OpenVMS_CMDSET
All contributions are welcome!