From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,47a06d19e281eb8d X-Google-Attributes: gidf7344,public X-Google-Thread: 111731,47a06d19e281eb8d X-Google-Attributes: gid111731,public X-Google-Thread: f6134,47a06d19e281eb8d X-Google-Attributes: gidf6134,public X-Google-Thread: 1164f8,47a06d19e281eb8d X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-03-07 06:29:57 PST Xref: gmd.de comp.org.decus:2647 comp.os.vms:41653 comp.sys.dec:13919 comp.unix.advocacy:856 Newsgroups: comp.org.decus,comp.os.vms,comp.sys.dec,comp.unix.advocacy Path: gmd.de!newsserver.jvnc.net!netnews.upenn.edu!msuinfo!agate!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!CERN.ch!dxcern!lishka From: lishka@dxcern.cern.ch (Chris Lishka) Subject: Re: Is VMS Dying? Message-ID: <1994Mar7.142957.18455@dxcern.cern.ch> Organization: CERN European Laboratory for Particle Physics References: <1994Feb26.204059.4068@mixcom.mixcom.com> <2lafhn$46u@gap.cco.caltech.edu> <1994Mar6.154156.17891@dxcern.cern.ch> <2ld0g0$dso@gap.cco.caltech.edu> Date: Mon, 7 Mar 1994 14:29:57 GMT I wrote [lines beginning with =] Carl Lydick replied [lines beginning with #] = * Program-centerred command syntax. VMS uses a = mechanism to hide the actual programs being run from = the user. For example, the "SET" and "ANALYZE" = commands actually run several different executables = depending on what you choose (i.e. "ANALYZE DISK" = vs. "ANALYZE CRASH"). I prefer the Unix system: = when you run a command named "foo", you know you = will be in the environment the foo's programmer = designed. # And when you issue the ANALYZE command under VMS you know # that you'll be in the environment the DEC developers # designed. The environment that the DEC developers created for all of ANALYZE's facets is not consistent. If you ANALYZE/DISK, you use an interface based on command line options. If you ANALYZE/CRASH or ANALYZE/SYSTEM, you use a command oriented shell like interface similar to a debugger. Similarily, SHOW SYMBOL uses a command line interface. SHOW CLUSTER also uses a command line interface, except if you use SHOW CLUSTER/CONTINOUS, which throws one into a command oriented shell interface. Some commands like LICENSE or AUTHORIZE seem to be a single program (with a single interface). Other programs like SHOW, ANALYZE, or DELETE seem to be many programs with many purposes (e.g. DELETE works with removing files, logicals, symbols, queue entries, queues, intrusion records, etc.). In VMS, there is a definite seperation between the command you give (verbs, modifiers, etc.) and the program that is run. What I like about Unix is that 95% of the time (or more) the command I run has a single interface. I don't have to guess that lying underneath the ANALYZE/CRASH program is the System Dump Analyzer (SDA), yet lying under ANALYZE/MEDIA is the Bad Block Locator (which are documented seperately), and ANALYZE/DISK is yet another program. I personally feel that VMS verbs/commands are overloaded in their functionality. You are free to feel otherwise. I prefer the Unix way. = I also know that the first word in a command line is = the name of the program, and is not a "verb" which = may run different programs depending on other = parameters. # You know no such thing. Or have you never heard of the # exec() system call? Yes, but how many programs in Unix go around exec'ing other programs to fool the user with a completely different interface? In my experience, few (if any) do. If I run "dbx", I get the dbx interface. If I run "lpc", I get the lpc interface. If I run "ls", I get the ls interface. If I run "rm", I get the rm interface. What program you are running in Unix is typically more obvious, based on my experience. = Furthermore, I like the Unix concept of a command = path to search over the DCLTABLES method -- the Unix = method is more apparent and easier to search, # And easier to shoot yourself in the foot by placing a file # with the same name as a file you intend to execute somewhere # earlier in your path. So don't shoot yourself in the foot! If you get in a mess, use "which ls" or "whence ls" to find out what program called "ls" you are running. If you have competent Unix system managers, they will have set up a reasonable path anyhow. In practice, I had this problem maybe once in the many many years I have used Unix. = and I don't need to resort to = a public-domain program like VERB to find out what = executables are being run when I type a command. # Oh? Suppose the first program you run exec()s a second # program? How do you find out what that second program is? # Is there even a public-domain program that will tell you? You have a good point here. However, in practice it has never come up in the nine years I have used Unix. The path mechanism coupled with "which" or "whence" has satisfied my needs. (Not that I am saying this dilemma won't arise; rather, this particular problem hasn't arisen yet.) = [VMS handling of tapes.] # Your ignorance of VMS is showing. Perhaps you've never # heard of mounting a tape foreign? Your hair-trigger assumption that people don't know much is showing. Yes, I do know the difference between "MOUNT/FOREIGN $1$MIA0" and "MOUNT $1$MIA0". # How do you feel about the fact that you've got to decide, # under Unix, BEFORE you execute a command, whether or not you # want the tape rewound when the command completes? Hmm. I have to decide >before< I run BACKUP whether I want BACKUP/REWIND or BACKUP/NOREWIND (the default) if I want to save multiple backup save-sets to a [foreign] tape. Hmmm. To explicitly rewind a FILES-11 tape, I need to dismount and remount it. (In Unix I simply use "mt" or explictly use the rmt device.) Six of one, half dozen of the other. I >like< the fact that Unix makes no attempt to force a tape into the filesystem view. In Unix a tape is a tape. In VMS, a tape is a simple ANSI tape if mounted foreign, or a really bizarre subset of FILES-11 if mounted normally. If you like VMS' system, fine. I don't. VMS' tape semantics may be more feature-loaded than Unix, but the Unix tape handling has satisfied my needs for many years. = The very tight integration of C with Unix which = makes it a great C programming environment. stdin, = stdout, and stderr which work more consistently than = VMS' SYS$INPUT, SYS$OUTPUT, SYS$COMMAND, and = SYS$ERROR. # I've seen no inconsistencies in the latter. Perhaps you # could tell us what inconsistencies I've missed? Certainly. Here "DEFINE/USER SYS$OUTPUT ..." works fine. $ $ create zfoo.txt 1 2 3 *EXIT* $ open/append myfile zfoo.txt $ define/user sys$output myfile $ dir $ close myfile $ type zfoo.txt 1 2 3 Directory DISK$USER:[TESTUSER] LOGIN.COM;1 MAIL.MAI;1 ZFOO.TXT;1 Total of 3 files. $ Here, "DEFINE SYS$OUTPUT ..." doesn't seem to work as I would expect (based on the DEFINE/USER example above): $ create zfoo.txt 4 5 6 $ open/append myfile zfoo.txt $ define sys$output myfile %DCL-E-OPENOUT, error opening MYFILE:.; as output -RMS-F-RAT, invalid record attributes $ close myfile Why is there a difference in how DEFINE/USER and DEFINE treat the second parameter? Another example. The following doesn't work: $ dir %DIRECT-W-NOFILES, no files found $ create testme.com $ write sys$output "Inside testme.com" Exit $ define/user sys$output zfoo.txt $ @testme %DCL-W-UNDFIL, file has not been opened by DCL - check logical name $ dir Directory SCRATCH$DAY:[TESTUSER] TESTME.COM;1 ZFOO.TXT;1 Total of 2 files. $ type zfoo.txt %DCL-W-UNDFIL, file has not been opened by DCL - check logical name $ However, this does work: $ dir %DIRECT-W-NOFILES, no files found $ def/user sys$output zbar.txt $ dir $ dir Directory SCRATCH$DAY:[TESTUSER] ZBAR.TXT;1 Total of 1 file. $ type zbar.txt Directory SCRATCH$DAY:[TESTUSER] ZBAR.TXT;1 Total of 1 file. $ Presumably the first case didn't work because the file zfoo.txt had not been explicitly opened by my DCL process for writing. The following supports this: $ dir %DIRECT-W-NOFILES, no files found $ create testme.com $ write sys$output "The ghost in the machine" Exit $ open/write myfile zglarch.txt $ define/user sys$output myfile $ @testme $ close myfile $ dir Directory SCRATCH$DAY:[TESTUSER] TESTME.COM;1 ZGLARCH.TXT;1 Total of 2 files. $ type zglarch.txt The ghost in the machine $ So, opening the file explicitly works with DEF/USER. (In fact explicitly opening the file works with the second case as well.) DCL doesn't seem to insure that SYS$OUTPUT is open before a process writes to it, which I find clumsy. I must explicitly open and close my redirected SYS$OUTPUT. Compare the following in DCL: $ open/write myfile zfoo.out $ define sys$output myfile $ write sys$output "Foo" $ close sys$output to Unix: echo 'Foo' > zfoo.out Personally, I prefer Unix's input/output redirection more, as I find it is more elegant and has less inconsistencies. I do wish that Unix had the equivalent of SYS$COMMAND, but this can be faked with input from /dev/tty in many cases. What I don't understand is why you (Carl) feel the need to criticize personal preferences? I never stated that Unix is better than VMS (or vice versa); rather, I simply stated >why< I >prefer< Unix over VMS, at your urging. You seem to like VMS better, but I don't question >your< motivations. .oO Chris Oo. p.s. Just out of curiosity, Carl, how many VMS machines do you manage at your site? In the many postings I have read of yours, I've -- I hear the endless murmur, Christopher Lishka Every blade of grass that shimmers in the breeze PPE Division, CERN And the sound that comes to carry me lishka@dxcern.cern.ch Across the land and over the sea. -- Crowded House vxaluw::lishka