home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / ultrix / 6615 < prev    next >
Encoding:
Text File  |  1992-09-01  |  1.7 KB  |  42 lines

  1. Newsgroups: comp.unix.ultrix
  2. Path: sparky!uunet!sun-barr!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!yale!gumby!destroyer!news.iastate.edu!john
  3. From: john@iastate.edu (John Hascall)
  4. Subject: Re: Syntax question for rc.local file
  5. Message-ID: <1992Sep1.145044.14514@news.iastate.edu>
  6. Sender: news@news.iastate.edu (USENET News System)
  7. Organization: Iowa State University, Ames, IA
  8. References: <118021@muvms3.bitnet>
  9. Date: Tue, 1 Sep 1992 14:50:44 GMT
  10. Lines: 30
  11.  
  12. In article <118021@muvms3.bitnet> rcbi110@muvms3.bitnet (R. ALAN MONROE) writes:
  13. }Is this correct syntax?
  14. }       /etc/routed add default 129.71.1.11 1 & echo 'routed'    
  15. }                                              ^
  16. }                                              |
  17. }                                             Or should this
  18. }                                             be a semicolon?
  19.  
  20.         /etc/route add default 129.71.1.11 1  &&  echo 'default route set'
  21.  
  22. Is probably what you want (the single '&' botch is woefully common).
  23. Or a better scheme yet:
  24.  
  25.     echo -n " fubard"                                    > /dev/console
  26.     /etc/fubard -x -y -z  ||   echo -n " BOTCHED! "      > /dev/console
  27.  
  28. I really hate it when /etc/rc is starting up all those deamons and it is just
  29. sitting there:
  30.  
  31.     fubard bazifyd bogusd
  32.  
  33. and I have to remember what comes after bogusd (what is now starting up and
  34. talking so long).
  35.  
  36. John
  37. -- 
  38. John Hascall                                       ``Live with it pink-boy!''
  39. Project Vincent                                                              
  40. Iowa State University Computation Center                     john@iastate.edu
  41. Ames, IA  50011                                      515/294-9551 [fax -1717]
  42.