Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
22 views

untar content of folder from tar.gz archive that get's data from STDOUT (wget)

I want to extract the content of a single folder from a tar.gz archive that get's it's input from the STDOUT of wget. My command looks like this: wget -O - http://example.com/file.tar.gz | tar -C ...
1
vote
2answers
81 views

printf, redirection, crontab

I'm having trouble redirecting C printf statements to a file with a program running as root. I have a program with several informational printf statements and other libraries which print errors via ...
0
votes
0answers
175 views

How to remotely view tty1 stdout at pts/0 where the command runs?

Ubuntu 13.10 (Saucy) is running inside a Parallels Desktop version 8 for Mac virtual machine (KVM) and has telnet installed for remote access. To remotely access Ubuntu, the Mac terminal application ...
0
votes
1answer
103 views

When piping output to a file, why are stderr and stdout in the wrong order?

I have a perl script: warn "1\n"; print "2\n"; warn "3\n"; print "4\n"; I pipe the output to a file: perl script.pl &> foo cat foo: 1 3 2 4 Why isn't the output in order, and how do I ...
4
votes
3answers
24k views

What does 2>/dev/null mean…?

I want one or two line description about the following command line: grep -i '\/support\/security\/bulletins\/' content 2>/dev/null
0
votes
1answer
401 views

“Bad file descriptor” with /dev/stdin using dd

I've been using this method (Running off a live CD on both ends, and in root shell, as suggested in another of my questions) to clone one computer I've got set up to my liking to four others with the ...
2
votes
2answers
39 views

Taking input from a file and writing to it in the same command

My encoder is a program that encodes a piece of text and prints the encoded text to the standard output. But when I do: cat file.txt | encoder > file.txt what happens is that all the text in ...
1
vote
2answers
88 views

Redirect stdout and stderr so that it is displayed or stored nowhere

I want a process to just NOT print its stdout or stderr output. I know that I can do something like program >output.txt 2>errors.txt and then rm output.txt errors.txt but its not elegant. I want ...
1
vote
1answer
105 views

How to make everything on stdout be read aloud (using espeak)?

I've got the eSpeak TTS system up and running, and I like it quite a bit. I'm wondering, is there a way to pipe EVERYTHING that gets printed to STDOUT to espeak? I'm trying to set up a system without ...
3
votes
2answers
4k views

How can I view stdout/stderr of a startup application?

Some of the commands that I have in Startup Applications do not start properly when I login. (In particular I am having trouble with gtk-redshift.) In order to debug, I would like to be able to view ...
1
vote
1answer
302 views

Directly compress stdout

can someone tell me if is possible to directly compress stdout? I would like to do this in one step without creating temporary file files.txt... Example: cat file* > files.txt tar -czf files.tar ...