From help-octave-request at bevo dot che dot wisc dot edu Mon May 28 11:05:13 2001 Subject: Re: test if octave is running From: Paul Kienzle To: Jan-Mark Batke Cc: help-octave at bevo dot che dot wisc dot edu Date: Mon, 28 May 2001 17:04:55 +0100 if exist("OCTAVE_VERSION")==5, "octave", else "matlab", end The alternative is to put the specific stuff in two separate scripts on different paths, and in .octaverc add the octave script path but in .matlabrc (or whatever they use) add the matlab script path. Paul Kienzle pkienzle at kienzle dot powernet dot co dot uk On Mon, May 28, 2001 at 03:32:34PM +0200, Jan-Mark Batke wrote: > Hi all, > > is it possible to test if octave is running? E.g. > > if __octave_is_running__ > do octave_stuff; > else > do matlab_stuff; > end > > I didn't found something apropriate in the infos files. :( > > Regards > > Jan-Mark > > -- > .- Dipl.-Ing. Jan-Mark Batke -- TU Berlin·Secretary FT 5-1 . > Phone: ++49 30 314-2 45 78 Fachgebiet Fernmeldetechnik > Fax: ++49 30 314-2 25 14 (Telecommunications Group) > http://www-ft.ee.tu-berlin.de/~batke ------.¸.·¸.·´¯`·.¸.·. > > > > > > ------------------------------------------------------------- > Octave is freely available under the terms of the GNU GPL. > > Octave's home on the web: http://www.octave.org > How to fund new projects: http://www.octave.org/funding.html > Subscription information: http://www.octave.org/archive.html > ------------------------------------------------------------- > > ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------