Posted: Sun 04 Nov 2012, 16:57 Post subject:
Puppy DECTERM Subject description: Bringing OpenVMS commands to Puppy!
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)
Code:
#!/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
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'
This is a separate files that is linked into the .bashrc.
Code:
. /root/.OpenVMS_CMDSET
This is just that start to the project. I'll soon be adding scripts to give it more of a DECTERM feel.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum