in reply to Re: how to supress stdout
in thread how to supress stdout

Also you can redirect only output of sqlldr:
open ($sqlldr3, "|sqlldr usr/pass\@db >/dev/null 2>&1")

Replies are listed 'Best First'.
Re^3: how to supress stdout
by chuckd (Scribe) on Dec 12, 2008 at 23:36 UTC
    hi
    what does this mean?
    >/dev/null 2>&1 in the open call? I see two redirects. Can you explain this?

      First, standard output is redirected to /dev/null. Assuming 1 is standard output file descriptor & 2 is standard error, standard error is also redirected to the same place as standard output (which is to /dev/null).

      Above will work only when a bourne-like shell (FreeBSD /bin/sh, bash, zsh, etc.) handles the redirection.

        Aren't fd 1 and 2 stdout and stderr by definition?
        ... and there's me thinking that is only true if the re-direction is done in the shell - perl seems to 'know' how 'proper' re-direction works when done as in this example i.e. in a call to one of the open() functions.

        Maybe it's senility setting in big time ??

        A user level that continues to overstate my experience :-))