From: Peter Weaver [pweaver@stelco.ca] Sent: Friday, July 09, 1999 3:28 PM To: Info-VAX@Mvb.Saic.Com Subject: RE: Simulating UNIX commands on VMS ? scripts? > -----Original Message----- > From: Brian Schenkenberger, VAXman- [mailto:system@SendSpamHere.ORG] > ... > Place the following in your LOGIN.COM file: > > $ df == "pipe write sys$output ""CORE DUMP!"" ; def/use libots > librtl ; dir" > $ cd == "pipe write sys$output ""CORE DUMP!"" ; def/use libots > librtl ; dir" > $ ls == "pipe write sys$output ""CORE DUMP!"" ; def/use libots > librtl ; dir" > $ find == "pipe write sys$output ""CORE DUMP!"" ; def/use libots > librtl ; dir" > $ grep == "pipe write sys$output ""CORE DUMP!"" ; def/use libots > librtl ; dir" > $ od == "pipe write sys$output ""CORE DUMP!"" ; def/use libots > librtl ; dir" > $ cat == "pipe write sys$output ""CORE DUMP!"" ; def/use libots > librtl ; dir" > $ vi == "pipe write sys$output ""CORE DUMP!"" ; def/use libots > librtl ; dir" > $ kill == "pipe write sys$output ""CORE DUMP!"" ; def/use libots > librtl ; dir" > $ rm == "pipe write sys$output ""CORE DUMP!"" ; def/use libots > librtl ; dir" > $ mv == "pipe write sys$output ""CORE DUMP!"" ; def/use libots > librtl ; dir" > > and so on... > > -- I know this worked on a VAX with V6.1, I have idea if it will work on anything else If you try it remember to :) - the first time I tried it a bunch of us VMS bigots laughed our guts out, the Unix and Windows people could not figure out what was so funny. From: MX%"gavron@ACES.COM" 11-MAR-1993 02:19:32.71 To: DRAGON CC: Subj: Re: FAQ YES? How to get that UNIX feel? CORRECTED #2 From: gavron@spades.aces.com (Ehud Gavron) Date: 10 Mar 93 15:24:00 GMT Sender: news@sunquest.UUCP Reply-To: gavron@ACES.COM Organization: ACES Research Inc. Lines: 82 News-Software: VAX/VMS VNEWS 1.41 To: Info-VAX@KL.SRI.COM In article <10MAR199308205577@spades.aces.com>, gavron@ACES.COM writes... #CORRECTED CODE here And still the damn thing keeps stripping periods off the code. NOW it's ok. # ##In article , v110mhwh@ubvmsb.cc.buffalo.edu ##(David M Stokes) writes... ###I AM SICK AND TIRED OF PLAYING THE DIR VS. LS -L or SET DEF VS. CD GAME. ## ## I agree with you 100%. It is stupid to have different ## operating systems appear different. WHY don't the ## designers STANDARDIZE or something (like Unix!). ## ###I am asking for the ftp site or whatever for the location of the ###program that creates the UNIX feel inside the VMS system. Sound like HERESY? ## ## Believe it or not, the DECSHELL routines with POSIX support ## have this latently in VMS but access to it is secretly guarded. ## I have a small macro program which makes these available, although ## as ``DCL symbols'' (like csh aliases). ## ###I like my UNIX and I don't care who knows. Of course I like ###VMS, really I do, but the inconvenience is just that.. a pain in the glutes. ## ## Yeah! When you said that I KNEW I had to help you out! ## ## ###After such tomfoolery I expect nothing, but perhaps some kind soul with a sense ###of humor could help me out? ## ## OF COURSE! The program below will allow a NEAR-PERFECT ## EMULATION of ALL UNIX COMMANDS. ## ###David M. Stokes ## ##Add these symbol definitions to your LOGIN.COM: ## $ cd == "$sys$Login:exec cd" ## $ ls == "$sys$Login:exec ls" ## ... ## $ command == "$sys$Login:exec command" ## ## ##Create the following EXEC.MAR file: $ create exec.mar .library /sys$Library:lib.mlb/ pc7: .ascid "save registers" pc5: .ascid "maintain status" .macro exec_m calls #1,g^lib$put_output .endm pc1: .ascid "handler u$x" .entry exec,^m movab pc1,r0 moval @4(r0),r6 pushl r6 movl #^x6D756420,B^04(R6) movw #^x6572,B^02(R6) addl3 #5,(sp),r7 movw #^x6570,B^03(R7) addl2 #4,sp movw #^x6F43,(R6) movw #^x2064,B^05(R7) movl r0,-(sp) exec_m .end exec ^Z ## ##Then build it: ##$ macro exec ##$ link exec ## ##Then log out and in, and FULL UNIX BEHAVIOR will be available to you. ## ##Send checks care of Jeff Killeen, DECUS NLC chair. ## ## ##-- ##Ehud Gavron (EG76) ##gavron@aces.com ##This is Comp.OS.VMS. Be nice, not technical