home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.ultrix
- Path: sparky!uunet!sun-barr!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!yale!gumby!destroyer!news.iastate.edu!john
- From: john@iastate.edu (John Hascall)
- Subject: Re: Syntax question for rc.local file
- Message-ID: <1992Sep1.145044.14514@news.iastate.edu>
- Sender: news@news.iastate.edu (USENET News System)
- Organization: Iowa State University, Ames, IA
- References: <118021@muvms3.bitnet>
- Date: Tue, 1 Sep 1992 14:50:44 GMT
- Lines: 30
-
- In article <118021@muvms3.bitnet> rcbi110@muvms3.bitnet (R. ALAN MONROE) writes:
- }Is this correct syntax?
- } /etc/routed add default 129.71.1.11 1 & echo 'routed'
- } ^
- } |
- } Or should this
- } be a semicolon?
-
- /etc/route add default 129.71.1.11 1 && echo 'default route set'
-
- Is probably what you want (the single '&' botch is woefully common).
- Or a better scheme yet:
-
- echo -n " fubard" > /dev/console
- /etc/fubard -x -y -z || echo -n " BOTCHED! " > /dev/console
-
- I really hate it when /etc/rc is starting up all those deamons and it is just
- sitting there:
-
- fubard bazifyd bogusd
-
- and I have to remember what comes after bogusd (what is now starting up and
- talking so long).
-
- John
- --
- John Hascall ``Live with it pink-boy!''
- Project Vincent
- Iowa State University Computation Center john@iastate.edu
- Ames, IA 50011 515/294-9551 [fax -1717]
-