Professional Web Applications Themes

/usr/local/etc/rc.d scripts: echo on startup - FreeBSD

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 -- __________________________________________________ _________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm...

  1. #1

    Default /usr/local/etc/rc.d scripts: echo on startup

    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

    --
    __________________________________________________ _________
    Sign-up for Ads Free at Mail.com
    http://promo.mail.com/adsfreejump.htm

    Fafa Guest

  2. #2

    Default Re: /usr/local/etc/rc.d scripts: echo on startup

    On 2005-03-10 06:45, Fafa Diliha Romanova <com> wrote: 

    I usually edit the offending scripts in /usr/local/etc/rc.d:

    # cd /usr/local/etc/rc.d
    # vi *

    and make them all use a uniform notification:

    echo -n " foo"

    This does require a bit of shell scripting foo, but it shouldn't be
    that hard. If it proves more difficult than you expected, feel free
    to post the script here or personally to me and ask for help.

    - Giorgos

    Giorgos Guest

  3. #3

    Default Re: /usr/local/etc/rc.d scripts: echo on startup

    On Thursday 10 March 2005 06:45 am, Fafa Diliha Romanova wrote: 

    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
    Mike Guest

Similar Threads

  1. Problem with local file and local link
    By leofire in forum Macromedia Flash Player
    Replies: 0
    Last Post: February 9th, 09:35 AM
  2. Where to put Javascript StartUp scripts?
    By Garrett_Cobarr@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 5
    Last Post: April 23rd, 06:55 PM
  3. scripts that control other scripts
    By kiaoraFiona webforumsuser@macromedia.com in forum Macromedia Director Lingo
    Replies: 8
    Last Post: October 6th, 05:07 PM
  4. startup scripts and java (cont.)
    By Steven in forum Sun Solaris
    Replies: 2
    Last Post: August 6th, 09:44 PM
  5. Replies: 1
    Last Post: June 26th, 09:17 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139