Quantcast
Channel: Active questions tagged 22.04 - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4549

sudo with tee displays staircase

$
0
0

Previously I ran without sudo and used tee to display on terminal and log to file:

./my_app | tee path/to/log_file

Now I need sudo:

sudo ./my_app | tee path/to/log_file

However, because of tee when I add sudo my output has weird diagonal offsets:

start of line 1 this is a test        start of line 1 this is a test                start of line 1 this is a test                         start of line 1 this is a test

It happens after I ask the user to enter input on the command line (press ENTER).

It never happened without sudo or tee. Is there a way to use both together?


Viewing all articles
Browse latest Browse all 4549

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>