Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!munnari.oz.au!yoyo.aarnet.edu.au!sirius.ucs.adelaide.edu.au!levels!mareb From: mareb@levels.sait.edu.au Newsgroups: comp.unix.msdos Subject: Re: VPIX compatability questions Message-ID: <15845.27a02219@levels.sait.edu.au> Date: 25 Jan 91 12:18:33 GMT References: <6025@spdcc.SPDCC.COM> <1991Jan17.041520.24159@tmsoft.uucp> <2546@westmark.WESTMARK.COM> Organization: Sth Australian Inst of Technology Lines: 17 In article <2546@westmark.WESTMARK.COM>, dave@westmark.WESTMARK.COM (Dave Levenson) writes: > >> Is there a way to detect you are running inside of VPix? > > You could try to write to a file in the root filesystem. > You'll be allowed if you're in real MS-DOS, and not if you're under > VP/ix, unless VP/ix was invoked by root. > > > Anybody know a better way? My guess is you could spawn true(1), the UNIX command, under VP/ix but not under DOS. Of course, there are many UNIX-commands-for DOS around so it might be better to ensure you are using RUNUNIX.EXE (or whatever that command is called) mechanism. b++ (Bob Buckley)