How to suppress non fatal messages

Discussion in 'Perl Misc' started by Nene, Mar 11, 2011.

  1. Nene

    Nene Guest

    Hi,
    The modules works but it prints out some nonfatal message to the
    screen, how do I suppress that?


    pty_allocate(nonfatal): posix_openpt(): Success at /usr/lib/perl5/
    site_perl/5.8.8/i686-linux/IO/Pty.pm line 24.



    pty_allocate(nonfatal): posix_openpt(): Success at /usr/lib/perl5/
    site_perl/5.8.8/i686-linux/IO/Pty.pm line 24.
     
    Nene, Mar 11, 2011
    #1
    1. Advertisements

  2. Nene

    ilovelinux Guest

    On 11 mrt, 15:04, Nene <> wrote:
    > Hi,
    > The modules works but it prints out some nonfatal message to the
    > screen, how do I suppress that?
    >
    > pty_allocate(nonfatal): posix_openpt(): Success at /usr/lib/perl5/
    > site_perl/5.8.8/i686-linux/IO/Pty.pm line 24.


    I could not test it, but try enclosing the offending statement in a do-
    block with "no warnings":

    my $pty = do { no warnings; IO::pty->new() };

    This will suppress other, useful warnings as well, so I think this is
    a bug in IO/Tty/Tty.xs, see http://cpansearch.perl.org/src/TODDR/IO-Tty-1.10/Tty.xs,
    near line 464.
     
    ilovelinux, Mar 15, 2011
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. peshrad
    Replies:
    3
    Views:
    1,643
    David Freeman
    Nov 8, 2004
  2. =?Utf-8?B?SmFzb24gUGV0dHlz?=

    Suppress viewstate __viewstate rendering

    =?Utf-8?B?SmFzb24gUGV0dHlz?=, Jan 14, 2005, in forum: ASP .Net
    Replies:
    10
    Views:
    3,129
    Steven Cheng[MSFT]
    Jan 18, 2005
  3. Clive
    Replies:
    0
    Views:
    3,259
    Clive
    Aug 12, 2003
  4. =?Utf-8?B?UGFjZXIgRGF3bg==?=

    How do I suppress the display of validation messages

    =?Utf-8?B?UGFjZXIgRGF3bg==?=, May 25, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    680
    Jimi200478
    May 25, 2006
  5. Replies:
    6
    Views:
    999
  6. Ioannis Vranos
    Replies:
    2
    Views:
    359
    Ian Collins
    Apr 17, 2009
  7. Stuart Palmer

    Non friendly error messages

    Stuart Palmer, Aug 11, 2004, in forum: ASP General
    Replies:
    2
    Views:
    294
    Stuart Palmer
    Aug 13, 2004
  8. Replies:
    1
    Views:
    261
Loading...