0
votes
1answer
239 views

BIND redirect host without zone

How can I redirect some hosts with my bind server, Like a hots file ( /etc/hosts ). If I declare a master zone of a external domain, I can't resolve request for subdomain...
0
votes
2answers
353 views

how to redirect file write from home folder to specific folder in UNIX

I did a search and didn't find what I was looking for. I finally found a beginners UNIX book that I like. I am going through some examples and I notice output is generated in the home folder. I am ...
0
votes
1answer
211 views

egrep redirection not working when following tail of file

I want to redirect the filtered output of a tail -f, as follows: tail -f myfile | egrep '(searchterm_a)|(searchterm_b)' >> outputfile.txt But for some reason the redirection is not working as ...
1
vote
1answer
271 views

How to redirect standard out and standard error to a file, and standard error (only) to console at the same time

I would like to direct: Standard out to file. Standard error to the same file. Standard error to console (as well as file). I've seen this kind of thing: mycommand 2>&1 | tee test.txt ...
5
votes
2answers
10k views

Redirect input from one terminal to another

I have sshed into a linux box and I'm using dvtm and bash (although I have also tried this with Gnu screen and bash). I have two terminals, current /dev/pts/29 and /dev/pts/130. I want to redirect ...
22
votes
1answer
16k views

Is there an equivalent to /dev/null in Windows?

If I want to ignore stdout of a command, I do this on *nix: myprog > /dev/null How do I achieve the same on Windows (in cmd or a batch file)?
0
votes
1answer
1k views

getting error while doing cat command “Ambiguous output redirect.”

while executing cat test.txt | java myfile > test1.txt 2> test2.txt I am getting error "Ambiguous output redirect." my java file contains System.out and System.err . I am in Unix csh ...
7
votes
4answers
436 views

Documenting Unix commands on the command line

I would like to append both the last command and the output of the last command to a text file for the purpose of a tutorial. For example: After I do an ls in my home directory I see this on the ...
1
vote
2answers
127 views

Linux redirection question

What does the following do on Linux? cat <> FIFO | Where FIFO is a FIFO created in the current directory.