Tee read from standard input and write to standard output and files.

learn more… | top users | synonyms

1
vote
0answers
104 views

Debugging preseed/late_command for ubuntu 16.04 server: tee not found vs nonexistent directory

I am trying to run the following preseed file on a ubuntu 16.04 server machine (during a packer build): d-i preseed/late_command string \ in-target mkdir -v -p -m 0440 "/etc/sudoers.d"; \ in-target ...
0
votes
1answer
19 views

Running tee from alt+f2

For some reason this works from term and does not from "run" dialogue or Openbox shortcuts... echo 200 | sudo tee /sys/class/backlight/intel_backlight/brightness
5
votes
2answers
570 views

lint: command not found

Does Ubuntu have a lint utility? How is it installed? In computer programming, lint is a Unix utility.. https://en.wikipedia.org/wiki/Lint_%28software%29 thufir@mordor:~$ thufir@mordor:~$ gcc ...
4
votes
3answers
294 views

Reading and writing a file: tee command

It is well known that a command like this: cat filename | some_sed_command >filename erases file filename, as the output redirection, being executed before the command, causes filename to be ...
0
votes
0answers
27 views

TEE / TrustZone Andoird Phone

I was wondering if TrustZone is enabled on the Cortex A7 ARM processor on the Aquaris E4.5. Would like to purchase one for developing Trustlets/Trusted Apps and experiment with them. Any response is ...
2
votes
2answers
176 views

'sudo tee' command gone wrong | Removing a source.list that can't be read?

This has happened twice where I followed instructions on installing software and then having the software center open then close immediately as a result of running the commands from the instructions. ...
3
votes
2answers
80 views

tee results in a null file

I try to change Apache configuration with this: sudo awk '/<Directory \/var\/www\/>/,/AllowOverride None/{sub("None", "All",$0)}{print}' /etc/apache2/apache2.conf | sudo tee /etc/apache2/...
3
votes
2answers
1k views

Tee doesn't get whole output from the pipe

I have a script executing commands like: export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH;./some_app -i $INDEX | tee $LOG echo "Number of errors: $(grep "ERROR" $LOG | wc -l)" The problem is probably in ...
0
votes
1answer
210 views

GPS nmea output, saving only last record to external file linux

I'm using a globalsat G-STAR IV GPS for my Vehicular Ad Hoc networks project. In this, the nmea output coming from the GPS gets updated every 1 second. I want to know if there is a way to save just ...
1
vote
3answers
5k views

How to Automatically save terminal command output to file [duplicate]

Is there a way that I can save the terminal command output to a file, without having to write the command ' | tee /abc.txt' every-time around?
21
votes
2answers
4k views

is there any significance to using tee

Why is it that almost all instructions regarding appending text to system files like fstab and /etc/apt/sources.list.d/<name>.list involve using tee and echo to append said text? Take the ...
0
votes
1answer
547 views

Capturing text output to a log, while printing REALTIME to terminal

My output prints approximately 1 line per second to the terminal, maybe 100-200 lines in total. I've tried to capture the output using tee, but it prints all the lines at the end of the process, not ...
0
votes
1answer
4k views

how to redirect output to a log file without tee? normal redirection is not working

why not use tee? because the terminal rendering of the output makes the application run slower. for some reason, this is not working: application 2>&1 >"$logFile" the output keeps going ...