Path: utzoo!attcan!uunet!know!samsung!uakari.primate.wisc.edu!crdgw1!sixhub!davidsen From: davidsen@sixhub.UUCP (Wm E. Davidsen Jr) Newsgroups: comp.unix.admin Subject: Re: Software installation opinions needed Message-ID: <1974@sixhub.UUCP> Date: 29 Sep 90 23:57:29 GMT References: <312@pcad.UUCP> Reply-To: davidsen@sixhub.UUCP (bill davidsen) Organization: *IX Public Access UNIX, Schenectady NY Lines: 25 In article rowe@cme.nist.gov (Walter Rowe) writes: | # Call my local rc.site script | if [ -x /usr/local/sys/rc.site ]; then | /usr/local/sys/rc.site > /dev/console 2>&1 | fi Arcane. I would expect: . /usr/local/sys/rc.site > /dev/console 2>&1 so that you could define the shell variables to be used in the rest of the script. I have a similar problem and found this to be the only way I could keep it modular and small. I run the local customize early in the script, and that may define RUNMELAST for things which run at the end of the startup. ie. [ -n "$RUNMELAST"] && [ -x $RUNMELAST ] && . $RUNMELAST Note that again . is used to pass any symbols defined during startup. -- bill davidsen - davidsen@sixhub.uucp (uunet!crdgw1!sixhub!davidsen) sysop *IX BBS and Public Access UNIX moderator of comp.binaries.ibm.pc and 80386 mailing list "Stupidity, like virtue, is its own reward" -me