You are on page 1of 4

Stack Overflow

1. Products
1.
2.

Raza Ahmed

3.
4.
5.
6.
7.
How to force a program to write log into standard output In spite of
redirection?
Ask Question

Asked today

Modified today

Viewed 10 times

Background
Today I am trying perconna's innobackupex with this command:

innobackupex --stream=xbstream /root/backup/ > /root/backup/backup.xbstream


However, I noticed logs show up on my terminal:

...
IMPORTANT: Please check that the backup run completes successfully.
At the end of a successful backup run innobackupex
prints "completed OK!".

230202 15:52:24 Connecting to MySQL server host: 127.0.0.1, user: root, password: set, port: 3306, socket: not set
...
Confusion
Shouldn't the redirection > writes the standard output to /root/backup/backup.xbstream? Why I can
still see logs on terminal?
 linux
Share

Edit

Follow

edited 1 min ago

asked 9 mins ago


Steve Wu

1411010 bronze badges

Add a comment

Report this ad

Know someone who can answer? Share a link to this question via email, Twitter,


or Facebook.
Your Answer



















 Links
 

 Images
 

 Styling/Headers
 

 Lists
 

 Blockquotes
 

 Code
 

 HTML
 

 Tables
 Advanced help
Post Your Answer

Browse other questions tagged 

 linux
 or ask your own question.
 The Overflow Blog
 CEO update: Eliminating obstacles to productivity, efficiency, and learning
 Announcing more ways to learn and grow your skills
 Featured on Meta
 Accessibility Update: Colors
 2022: a year in moderation
 Collectives: The next iteration
 Temporary policy: ChatGPT is banned
 We’re bringing advertisements for technology courses to Stack Overflow
Related

726

How do I write standard error to a file while using "tee" with a pipe?

782

How can I copy the output of a command directly into my clipboard?

12

on-the-fly output redirection, seeing the file redirection output while the program is still running

Write into .log file

76

How can I have tcpdump write to file and standard output the appropriate data?

11

Python - Supervisor how to log the standard output -

Hot Network Questions


 What is the best design for trans-atmospheric cargo ship?
 Can I get a travel insurance policy which is valid for NON-MEDICAL claims, despite undeclared medical conditions?
 Why is there so much attention towards the Czech President even though it's supposed to be a figurehead position?
 Basis for multivariable polynomials
 Not a good result for a graph made with tikz
more hot questions

 Question feed

STACK OVERFLOW
 Questions
 Help
PRODUCTS
 Teams
 Advertising
 Collectives
 Talent
COMPANY
 About
 Press
 Work Here
 Legal
 Privacy Policy
 Terms of Service
 Contact Us
 Cookie Settings
 Cookie Policy
STACK EXCHANGE NETWORK
 Technology
 Culture & recreation
 Life & arts
 Science
 Professional
 Business
 API
 Data
 Blog
 Facebook
 Twitter
 LinkedIn
 Instagram
Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA. rev 2023.1.31.43211
Your privacy

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance
with our Cookie Policy.

You might also like