I tried doing this:
yes > yes.txt
Afterwards, yes.txt is created but is completely empty.
|
show 6 more comments
feedback
|
|
you want to do
Which will execute Note: | |||||||||||||||||||||
feedback
|
|
your original solution
| ||||
|
feedback
|
|
I found the solution; my harddrive was full >.< | |||||||
feedback
|
|
Use 'echo yes > yes.txt' Yes is a program that doesn't write to stdout. | |||||||||||
feedback
|
yes | cat -v > yes.txt, maybe your yes implementationyessomehow prevents writing into a file? – Daniel Beck Dec 4 '11 at 8:58yesdoes not indicate special handling of output to files. Are you sure that e.g. your disk isn't already full? Have you canceled the command, so e.g. buffering of writes to disk is no longer an issue? – Daniel Beck Dec 4 '11 at 10:49