tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Tom Linden <tom () kednos ! com>
To: tru64-unix-managers
Subject: SUMMARY: Re: routed error at boot (fwd)
Date: Wed, 27 Jan 1999 20:41:03 +0000	[thread overview]
Message-ID: <96079034715901.tru64-unix-managers.marc@archive.invalid> (raw)

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 <francini@nashua.progress.com>
To: Tom Linden <tom@kednos.com>
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"|
+---------------------------------------------------------------------------+

                 reply	other threads:[~1999-01-27 20:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox