3

I have a script I wrote for myself and it uses vlc somewhere towards to end and I need it to stop outputting anything it wants but keep my own outputs (so no "clear").

i have used the parameters: "-q" and "--no-sout-x264-quiet" but to no avail, it still outputs ugly msgs, ie: "Warning: call to rand()" and "Blocked: ..." and "Gtk-WARNING ** ..."

i tried redirecting 'vlc ... > err.log', it dont help...

(edit[forgot to add]: the redirect '>' doesnt work, file is empty)

i searched in vlc -H but its massive and there are >20 "quiet" keyword, non of which seem like they would help

Please help me :'(

3
  • It looks like it's outputting to STDERR. You need to redirect STDERR to /dev/null to make it really quiet. But how will you know if something's wrong? Commented Jun 14, 2011 at 6:48
  • its a personal script, and if it dont work i'll know, because the scripts purpose is to play a file with vlc, and besides I cant make use of the errors... Commented Jun 14, 2011 at 6:52
  • 1
    Exactly, so redirect the errors to /dev/null if you're not going to use them. Commented Jun 14, 2011 at 6:53

2 Answers 2

6

Normal redirection via ">" will just redirect "standard output". You must use "2>" to redirect the "standard error" stream.

vlc .. > out.log 2> err.log
Sign up to request clarification or add additional context in comments.

Comments

2

A "great" guide to redirection in bash (both STDOUT and STDERR) can be found here

3 Comments

so, don't you think I deserve a little upvote? I can edit my answer to say "A great guide to redirection..."
i'm new, by upvote do u mean you answer, the ^ arrow? if yes, i cant, i have less than 15 points :(
you have my upvote :) and I upvoted the question so krack has 15 points now.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.