Professional Web Applications Themes

How to suppress World Writable message - Ruby

Hi Matz mentioned that to supress the world writable message (other than to actually fix the problem) was to use the '-W0' option when calling ruby. (#!/usr/bin/ruby -W0) Is there a way to set this inside ruby? -- Jim Freeze ----------...

  1. #1

    Default How to suppress World Writable message


    Hi

    Matz mentioned that to supress the world writable message
    (other than to actually fix the problem) was to use the
    '-W0' option when calling ruby. (#!/usr/bin/ruby -W0)

    Is there a way to set this inside ruby?

    --
    Jim Freeze
    ----------


    Jim Guest

  2. #2

    Default Re: How to suppress World Writable message

    Jim Freeze <org> wrote:
     
     
     

    $-w = nil
    works for me.
     



    --
    --
    Ferris McCormick (P44646, MI)

    fmccor@inforead.com Guest

  3. #3

    Default Re: How to suppress World Writable message

    On Tuesday, 17 February 2004 at 23:04:53 +0900, com wrote: 


    >
    > $-w = nil
    > works for me.[/ref]

    Thanks. I guess I didn't try enough cases:

    ruby -W0 -e 'p $-w'
    nil
    ruby -W1 -e 'p $-w'
    false
    ruby -W2 -e 'p $-w'
    true
    ruby -W3 -e 'p $-w'
    true


    BTW, is there a more readable version instead of the Perlism?

    --
    Jim Freeze
    ----------
    History is curious stuff
    You'd think by now we had enough
    Yet the fact remains I fear
    They make more of it every year.


    Jim Guest

  4. #4

    Default Re: How to suppress World Writable message

    Hi,

    Jim Freeze <org> writes:
     

    % ruby -W0 -e 'p $VERBOSE'
    nil
    % ruby -W1 -e 'p $VERBOSE'
    false
    % ruby -W2 -e 'p $VERBOSE'
    true

    --
    eban


    WATANABE Guest

Similar Threads

  1. Message Of Love For A World In Trouble
    By Tzeff in forum Adobe Acrobat SDK
    Replies: 1
    Last Post: September 4th, 12:13 PM
  2. Replies: 1
    Last Post: September 2nd, 09:13 AM
  3. Necessary world-writable files/directories
    By Kevin Collins in forum Linux / Unix Administration
    Replies: 1
    Last Post: May 16th, 09:53 PM
  4. Message "Insecure world writable dir ..."
    By Harry Ohlsen in forum Ruby
    Replies: 19
    Last Post: November 27th, 09:20 AM
  5. Replies: 4
    Last Post: November 7th, 08:54 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