Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 01 Sep 2014, 20:07
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
Puppy DECTERM
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
KusaNoKaito


Joined: 19 Feb 2010
Posts: 99
Location: Florida

PostPosted: 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

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'



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.

All contributions are welcome!

_________________
Puppy Packages
My Website
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
Jump to:  

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


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0444s ][ Queries: 11 (0.0055s) ][ GZIP on ]