Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!ncar!ames!sgi!shinobu!odin!sgi.com!scotth From: scotth@corp.sgi.com (Scott Henry) Newsgroups: comp.sys.sgi Subject: Re: Problem starting X apps without csh Message-ID: Date: 27 Feb 91 09:22:19 GMT References: <9102261506.AA03162@coho.lerc.nasa.gov> Sender: news@odin.corp.sgi.com (Net News) Reply-To: scotth@sgi.com (Scott Henry) Organization: Silicon Graphics Inc, Mountain View, CA Lines: 43 In-Reply-To: fsfacca@COHO.LERC.NASA.GOV's message of 26 Feb 91 15:06:07 GMT tf> Here is a wierd one.. tf> When I run with "csh" as my default shell, I can start X applications tf> during startup, but when I use "sh" or "tcsh", I can't. tf> Background: tf> tf> OS 3.3.1, various platforms tf> tf> In /usr/NeWS/lib/user.ps I have the following lines: tf> . tf> . tf> /basicRestartActions [ tf> { establishEnvironment } tf> { RunConsole } tf> { startXsgi } tf> ] def tf> . tf> . tf> /RestartActions [ tf> { tf> (-n C_Shell -r1000 -s40x80 -t"$USER on `hostname`") forkwsh tf> (/usr/bin/X11/xclock -hd blue -bg grey -update 1 \ tf> -geometry 145x145 +1095+835 &) forkunix tf> (/usr/bin/X11/xcalendar -geometry 275x185-50-600 &) forkunix tf> . tf> . tf> Under sh, csh and tcsh the forkwsh works, but under sh, and tcsh, tf> forking the X apps does not work. I don't know if this is the actual problem, but `() forkunix` already puts the command in the background. The '&' in the command string may be confusing the shell. I am using tcsh as my default shell under 3.3.2 and I have no problems launching X apps. -- Scott Henry / Traveller on Dragon Wings Information Services, / Help! My disclaimer is missing! Silicon Graphics, Inc / Politicians no baka!