unofficial mirror
 help / color / Atom feed
From: "Måns Rullgård" <>
To: Jeff Learman <>
Subject: Re: Piping output of sox to a file produces empty text
Date: Mon, 27 Jul 2020 20:42:46 +0100
Message-ID: <> (raw)
In-Reply-To: <> (Jeff Learman's message of "Mon, 27 Jul 2020 15:02:14 -0400")

Jeff Learman <> writes:

>> On Mon, 27 Jul 2020 at 14:49, Ariel Elkin <> wrote:
>>> Hello,
>>> I’d like to save the output of the stat command to a file.
>>> When I call
>>> sox file.mp3 -n stat
>>> The output is correctly displayed. But If I then do
>>> sox file.mp3 -n stat > file.txt
>>> file.txt is empty.
>>> Why?
> I didn't check, but perhaps sox text output is going to stderr.  For
> Linux/UNIX, using many shells (sh, ksh, tsh, zsh, bash, but not csh),
> redirect stderr this way:
> sox file.mp3 -n stat > file.txt 2>&1

Per the man page, "The information is output to the `standard error'
(stderr) stream."

Måns Rullgård

Sox-users mailing list

      parent reply index

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-27 16:17 Ariel Elkin
2020-07-27 19:02 ` Jeff Learman
2020-07-27 19:04   ` Jeff Learman
2020-07-27 19:42   ` Måns Rullgård [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link unofficial mirror

Archives are clonable: git clone --mirror

Example config snippet for mirrors

Newsgroups are available over NNTP:

 note: .onion URLs require Tor:

AGPL code for this site: git clone