From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079034715901.tru64-unix-managers.marc@archive.invalid> From: Tom Linden Date: Wed, 27 Jan 1999 20:41:03 +0000 To: tru64-unix-managers Subject: SUMMARY: Re: routed error at boot (fwd) X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079034715901 As John had suggested, there was a null line after the one line entry. Removing this line resolved the problem. However, in my view, either the script or route should have rejected the line. Thanks for the help Tom Linden Support of PL/I for VMS, Open VMS and Kednos Corporation Digital Unix. tel 650 949 1249 ---------- Forwarded message ---------- Date: Wed, 27 Jan 1999 15:26:25 -0500 From: John Francini To: Tom Linden Subject: Re: routed error at boot Make sure there are no blank lines after the first line's newline. I was able to reproduce your problem by inserting a single extra newline at the end of the /etc/routes file. You see, the code to add the contents of /etc/routes looks like this in /sbin/rc3.d/S12route: if [ -f /etc/routes ]; then cat /etc/routes | while read line do /usr/sbin/route add $line done fi So the while loop ends up executing the line /usr/sbin/route add default 198.68.96.1 which succeeds. Since the routes file is not at EOF, the while loop then reads the next line from the file (since there's an extra newline), and trying to execute the line /usr/sbin/route add which fails (of course). Hope this helps, John Francini -- John Francini, francini@progress.com +---------------------------------------------------------------------------+ | "I have come to the conclusion that one useless man is called a disgrace; | | that two or more are called a law firm; and that three or more become | | a Congress. And by God I have had _this_ Congress!" | | -- John Adams in "1776"| +---------------------------------------------------------------------------+