Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8368273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:20:52+00:00 2026-06-09T13:20:52+00:00

For example, subprocess.Popen([/usr/bin/vlc, –version], stderr=subprocess.PIPE, stdout=subprocess.PIPE).communicate() on my computer leads to (‘VLC version 2.0.2

  • 0

For example,

subprocess.Popen(["/usr/bin/vlc", "--version"], stderr=subprocess.PIPE, stdout=subprocess.PIPE).communicate()

on my computer leads to

('VLC version 2.0.2 Twoflower (.....see the AUTHORS file.\n', '')
# longish text in stdout with versions, including GCC version, date
# nothing on stderr

and on other computer it leads to

('', 'VLC media player 1.1.3 The Luggage (revision exported)\n')
# on stderr

Also (strange):

mycomp> /usr/bin/vlc --version 2>&1 > /dev/null
VLC media player 2.0.2 Twoflower (revision 2.0.1-453-g40d9fef)
mycomp> perl -e 'print `/usr/bin/vlc --version 2>&1 > /dev/null`'
(no output at all)
mycomp> /usr/bin/vlc --version 2>&1 > /dev/null | cat
(no output at all)
mycomp> socat system:'/usr/bin/vlc --version > /dev/null',stderr -
(no output at all)
mycomp> socat system:'/usr/bin/vlc --version > /dev/null',pty,stderr -
VLC media player 2.0.2 Twoflower (revision 2.0.1-453-g40d9fef)
mycomp> strace -o /tmp/2 -e write  /usr/bin/vlc --version 2>&1 > /dev/null | cat
(no output at all)
mycomp> cat /tmp/2
write(1, "VLC version 2.0.2 Twoflower (2.0"..., 401) = 401
mycomp> strace -f -o `tty` -e write  /usr/bin/vlc  --version > /dev/null 2> /dev/tty2
3628  write(2, "VLC media player 2.0.2 Twoflower"..., 63) = 63
3628  write(1, "VLC version 2.0.2 Twoflower (2.0"..., 401) = 401
strace -f -o `tty` -e write  /usr/bin/vlc  --version > /dev/null 2> /dev/null
3587  write(1, "VLC version 2.0.2 Twoflower (2.0"..., 401) = 401
# sad, seems to be "too clevel"-type of bug.


othercomp> perl -e 'print `/usr/bin/vlc --version 2>&1 > /dev/null`'
VLC media player 1.1.3 The Luggage (revision exported)
othercomp> /usr/bin/vlc --version 2>&1 > /dev/null
VLC media player 1.1.3 The Luggage (revision exported)

What is wrong? What should I rely on?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T13:20:53+00:00Added an answer on June 9, 2026 at 1:20 pm

    Looks like they switched putting the output of --version from stderr to stdout. You’ll have to check both.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

can I use Popen from python subprocess to close started process? For example, from
I'm kind of confused about how subprocess.Popen works. If anyone has example code that
I'm writing a python script that uses subprocess.Popen to execute two programs (from compiled
Is there a way to specify the running directory of command in Python's subprocess.Popen()
I want to change the current directory using subprocess. For example: import os, sys,
I'm using Python's subprocess.Popen to perform some FTP using the binary client of the
I have a script a.py : #!/usr/bin/env python def foo(arg1, arg2): return int(arg1) +
I want to log all calls to subprocess.Popen, so that I can create a
I've read everything there is on subprocess.Popen but I think I'm missing something. I
I was playing around with Python's subprocess module, trying a few examples but I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.