Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Mar 2005 07:35:14 -0500
From:      Mike Hauber <m.hauber@mchsi.com>
To:        freebsd-questions@freebsd.org
Cc:        Fafa Diliha Romanova <fteg@london.com>
Subject:   Re: /usr/local/etc/rc.d scripts: echo on startup
Message-ID:  <200503100735.16004.m.hauber@mchsi.com>
In-Reply-To: <20050310114517.150A74BE6D@ws1-1.us4.outblaze.com>
References:  <20050310114517.150A74BE6D@ws1-1.us4.outblaze.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 10 March 2005 06:45 am, Fafa Diliha Romanova wrote:
> hello.
>
> i'm just wondering how to deal with the way the rc.d scripts
> echo on startup. like, some of the rc.d scripts contain the
> echo " daemon", while some echo "daemon", so on startup whereas
> it should look like:
>
> daemon daemon deamon
>
> it may look like:
>
> daemondaemon daemon 1.2 Loaded successfully!daemon
>
> is there a uniform way to identify echos and make them display
> properly? thanks!
>
> all the best,
> fafa

You could edit rc.d remove the spaces and replace them with "." so 
it would make it look like:
daemon.daemon.daemon.daemon.

You could also edit the echo strings so that the spaces are at the 
beginning/end for all of them...  Either way, the output would 
essentially be the same:
daemon deamon daemon 
 daemon deamon daemon

man echo?

Mike



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503100735.16004.m.hauber>