tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: Re: routed error at boot (fwd)
@ 1999-01-27 20:41 Tom Linden
  0 siblings, 0 replies; only message in thread
From: Tom Linden @ 1999-01-27 20:41 UTC (permalink / raw)
  To: tru64-unix-managers

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"|
+---------------------------------------------------------------------------+

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-01-27 20:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-01-27 20:41 SUMMARY: Re: routed error at boot (fwd) Tom Linden

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