tad@killer.UUCP (09/22/87)
Are there VMS commands which are equivalent to the following UNIX commands? These are command lines for sh. $ do something; do something else; ..... $ do this & $ something > somewhere $ all >& somewhere Thanks, Tad -- Tad Marko ..!ihnp4!killer!tad || ..!ihnp4!alamo!infoswx!ntvax!tad UNIX Connection BBS AT&T 3B2 North Texas State U. VAX 11/780 "Hi there!" -- Peter Gabriel in "Big Time"
leichter@VENUS.YCC.YALE.EDU ("Jerry Leichter") (09/23/87)
Are there VMS commands which are equivalent to the following UNIX commands? These are command lines for sh. Well, if you get the DEC Shell layered product, which contains the Bourne shell, you can type EXACTLY what you have below. Failing that... $ do something; do something else; ..... No direct analogue - DCL is one command per line. (You could define a command procedure, say DO, which took a bunch of commands and executed them, using some format like DO command \ command \ command.) $ do this & SPAWN/NOWAIT this. (If "this" tries to interact with the terminal, strange things will happen - there's nothing like job control. Output is not a big deal - acts just like Unix, actually; input will go to one or another of the active processes pretty much unpredictably if you do this.) $ something > somewhere No direct analogue. Many commands have a /OUTPUT:somewhere qualifier which does pretty much the same thing. The general idiom takes two lines: $ assign/user somewhere SYS$OUTPUT $ something $ all >& somewhere This re-directs error output, as I recall. Same as for the above, with SYS$ERROR in place of SYS$OUTPUT. -- Jerry ------