Workspace launched from remote terminal
Rob Warnock
rpw3 at rigden.wpd.sgi.com
Thu Aug 16 17:11:52 AEST 1990
In article <1990Aug15.151151.1237 at s1.msi.umn.edu> meuer at 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 at sgi.com rpw3 at pei.com
Silicon Graphics, Inc. (415)335-1673 Protocol Engines, Inc.
2011 N. Shoreline Blvd.
Mountain View, CA 94039-7311
More information about the Comp.sys.sgi
mailing list