The tag has no usage guidance.

learn more… | top users | synonyms

2
votes
2answers
269 views

systemd on 15.04 won't log stdout of unit

I'm currently trying to make a systemd unit as a web server. Currently, my foo.service file looks as follows: [Unit] Description=The Foo Web Server [Service] Type=simple ...
2
votes
2answers
192 views

How to copy the stdout of a command to the clipboard in a default Ubuntu installation?

I ran up against this question, and i found it quite interesting. While researching for that, i found out that a solution had been posted already here on AskUbuntu, plus multiple times on ...
0
votes
0answers
98 views

autostart rc.local 2>&1 redirect, 'open /dev/tty: No such device or address'

I'm trying to execute this command with rc.local: wget http://address/file -P /root/ 2>&1 | stdbuf -o0 awk '/[.] +[0-9][0-9]?[0-9]?%/ { print substr($0,63,3) }' | whiptail --gauge "Progress" 6 ...
0
votes
1answer
31 views

Upstart and isstty(STDOUT_FILENO)

Many Linux programs use istty to determine whether STDOUT is a terminal or not. For example, ls will (by default) suppress coloured output if it's redirected (istty == 0). When running upstart jobs, ...
0
votes
1answer
36 views

Could someone explain what the following command does?

Could someone explain me what the following command does? find / > allfiles.txt 2>/dev/null
0
votes
1answer
72 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
545 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
1answer
257 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 ...
22
votes
4answers
65k views

What does 2>/dev/null mean…?

I want one or two line description about the following command line: grep -i 'abc' content 2>/dev/null
0
votes
1answer
624 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
44 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
126 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
145 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 ...
6
votes
2answers
9k 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
580 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 ...