Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!godzilla!gab From: gab@tcs.com (Gary A. Bolles) Newsgroups: comp.unix.questions Subject: Re: script question Summary: a note of caution Message-ID: <1993@godzilla.tcs.com> Date: 4 Apr 91 18:51:30 GMT References: <1991Apr3.165501.25434@rodan.acs.syr.edu> Sender: root@tcs.com Followup-To: comp.unix.questions Organization: Teknekron Communications Systems, Inc., Berkeley, CA. Lines: 27 In article jc@raven.bu.edu (James Cameron) writes: > >But, if you are using csh or tcsh, try this: > > echo -n "Read news now? (Y/N): " > set REPLY = $< > if ($REPLY == "Y" || $REPLY == "y") then > rn -s15 > endif > > >Hope that helps. Just a word about doing stuff like this in your .login (if you must)... If rn exits abnormally for some reason, you may find that tasks appearing after it in your .login go undone. At least this was my experience with csh under 4.3BSD. I'd suggest that you make this routine the last thing you do in .login - just in case. Good luck. -- Gary A. Bolles | Teknekron Communications Systems, Inc. Software Configuration Manager | 2201 Dwight Way, Berkeley, CA, 94704 gab@tcs.com or uunet!tcs!gab | (415) 649-3595 Keep America Singing - SPEBSQSA