Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!sdd.hp.com!decwrl!sgi!rpw3@rigden.wpd.sgi.com From: rpw3@rigden.wpd.sgi.com (Rob Warnock) Newsgroups: comp.sys.sgi Subject: Re: Workspace launched from remote terminal Message-ID: <67004@sgi.sgi.com> Date: 16 Aug 90 07:11:52 GMT References: <9008150850.AA12394@mcirps2.med.nyu.edu> <1990Aug15.151151.1237@s1.msi.umn.edu> Sender: rpw3@rigden.wpd.sgi.com Reply-To: rpw3@sgi.com (Rob Warnock) Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 33 In article <1990Aug15.151151.1237@s1.msi.umn.edu> meuer@s1.msi.umn.edu writes: +--------------- | The way I've gotten around the problem with number two is to put code | like this in my .login: | if ( "`tty`" == "/dev/console" ) then | workspace | endif | This way only the "true" console window will start the workspace... +--------------- (*sigh*) Because of the way the window manager gets your environment variables using "exporttonews", it is very important not to run anything which touches your TTY (even looks at it, such as the "tty" program) in your .cshrc or .login, unless you "protect" it from "exporttonews" with "if(! $?ENVONLY )..." [By the way, this is quite independent of "workspace", per se.] Therefore, you example should read: if ( ! $?ENVONLY && "`tty`" == "/dev/console" ) then workspace endif I think I've posted the excruciating details here before, but will do so again if the above isn't clear... -Rob ----- Rob Warnock, MS-9U/510 rpw3@sgi.com rpw3@pei.com Silicon Graphics, Inc. (415)335-1673 Protocol Engines, Inc. 2011 N. Shoreline Blvd. Mountain View, CA 94039-7311