We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [redirect]

Redirection is the switching of a standard stream of data so that it comes from a source other than its default source or so that it goes to some destination other than its default destination.

Filter by
Sorted by
Tagged with
2
votes
1answer
2k views

Output not redirecting to file

I'm experiencing weirdness (or rather showing Linux ignorance). I want to learn the probability distribution of ping requests, so I thought I'd ping some random site for a while, grep the output to ...
0
votes
1answer
217 views

How can I redirect keyboard input (stdin) to audio device?

I'd like to know how can I redirect my keyboard input to my audio device.
2
votes
1answer
2k views

Can't redirect all output of program

I am attempting to redirect all output of a program (Steam) to /dev/null so it doesn't show up in the terminal. Here's what I've tried: steam & > /dev/null 2>/dev/null and steam & > /...
0
votes
1answer
1k views

Google.com redirect malware on FF

l have just installed Ubuntu 12.04 on my machine when l started firefox for the first time on typing google.com l redirected to random websites l have also tried conneting the computer to a differnt ...
2
votes
0answers
1k views

Why rewrite directive causes “301 Moved Permanently” with Nginx?

Below is a much simplified version of what I have in the configuration file of a server run by Nginx 1.2.5, yet it causes 301 Moved Permanently with Location: http://example.com/phpmyadmin/ before ...
-2
votes
3answers
2k views

Browser redirection

I am always getting redirecting to this http://search.tedata.net tedata is my internet provider . I called them they say they can't help unless I have windows but I don't want to go back to windows ...
5
votes
3answers
9k views

can I redirect file as input to notify-send?

I want to use command notify-send and display text from a file as a notification so that I can only edit that file to change command or forward contents from outputs of other programs to notify-send. ...
1
vote
1answer
4k views

How can I capture text from a specific terminal and redirect it to a log file while simultaneously working? [duplicate]

I viewed this question to redirect text to file while displaying the output. My question is how can I redirect it while working AND without constant | tee command. My plan is to use this question to ...
0
votes
2answers
1k views

Problem in redirecting standard input and output

I want to take backup of my mysql data using mysqldump. I have three files containing names of mysql tables line by line. My script has this line - mysqldump -h localhost -uroot --lock-tables=false ...
4
votes
3answers
6k views

Redirect stdout to file and stderr to file and to screen

I am running valgrind to shake out bugs in my program. Valgrind's memcheck prints to stderr. What I want to do is a modification to this: valgrind --tool=memcheck ./a.out >output 2>grindout ...
0
votes
1answer
3k views

Running a program on boot without login, using the screen

Preface: I have a server running on an old laptop. The screen is always on with a login prompt, but because its keyboard is in pretty bad shape, I use it exclusively via ssh. The screen is in a good ...
2
votes
4answers
807 views

Why is the following bash command not working properly?

I have the following bash command: $(ls -l /var/ | grep www) > cat folder_exists but it is not working properly. What I hope to achieve is a command, that checks to see if there is a www folder ...
9
votes
3answers
4k views

How to redirect single audio channels to different devices?

I just bought a bluetooth stereo speaker and I had an idea: Is it possible to build a 4.0 audio system using my Bluetooth speakers as rear speaker and two normal cabled stereo speakers (or another ...
0
votes
1answer
3k views

what does 1>&5 mean?

Sometimes, in shell scripts, I see like echo yes 1>&5 I understand it redirect to somewhere, but I would like to know more detail. And more specifically, what do 1, >, &, 5 mean? I ...
1
vote
1answer
114 views

Redirection execution order?

I wonder why the standard errors are always output first despite the redirection order in my commands: "first > then 2>&1" lyg@lyg-VirtualBox:~$ > txt lyg@lyg-VirtualBox:~$ ls txt tt ...
211
votes
8answers
100k views

What is the difference between “Redirection” and “Pipe”?

This question may sound a bit stupid, but I can not really see the difference between redirection and pipes. Redirection is used to redirect the stdout/stdin/stderr, e.g. ls > log.txt. Pipes are ...
0
votes
4answers
1k views

How do I download Ubuntu for another computer, that has no Internet access?

Will the entire Ubuntu software fit onto a single CD? If I download Ubuntu to a CD, for use on another computer, will it automatically install/partially install on the computer I use for the ...
14
votes
1answer
12k views

What is equivalent of windows' hosts file?

I want to redirect some sites to localhost. I can use hosts file which resides in directory C:\WINDOWS\system32\drivers\etc in windows. Which is equivalent of this file in Ubuntu?
0
votes
0answers
31 views

Redirected to Ubuntu downloads page when clicking the wubi download button [duplicate]

Possible Duplicate: Why can't I download the Windows installer (Wubi) from the Ubuntu website? Am I missing the Windows installer? It keeps taking me to the same page and I keep running around ...
1
vote
1answer
2k views

How do I redirect my apache web app from an alias of one domain to a sub domain of another?

I have a web application on www.domain1.com where I have installed Apache2 and Tomcat7. I would like to make a redirect from www.domain2.com (which is a www.domain1.com alias) to www.domain1.com:8080/...
2
votes
2answers
1k views

Is there any easy way to trace a route in ubuntu?

Is there any easy way to track the route that an request takes in Ubuntu? For example, tell me what the DNS servers are, which servers it redirects through before reaching the final page, etc. Is ...
1
vote
1answer
827 views

How to stop the redirect after FOG uninstall?

I have uninstalled FOG Server from my Ubuntu 11.04 However, when I try to access the machine IP: http://192.168.0.22/ it is redirected to: http://192.168.0.22/fog/index.php and I get a 404 error. ...
6
votes
1answer
4k views

how to get output of a script/program into a file?

I am compiling a program using make and want the output of make to be written to a file. I have tried using > operator like make > build_log.txt and using tee command like make | tee build_log....
11
votes
2answers
46k views

How to redirect output to screen as well as a file?

My aim is to log all output from a script into a directory that the script is going to create. For example, I have: ~/.abc.sh: #! /bin/bash rails new myapp When I run... cd ~/code . ~/.abc.sh ......
14
votes
1answer
52k views

Redirect requests to my external IP/port to a different external IP/port?

Is it possible to redirect connections to a specific IP/port to an external IP/port? Example: Server A has the external IP xxx.xxx.xxx.xxx Server B has the external IP yyy.yyy.yyy.yyy User sends a ...
0
votes
5answers
231 views

Securing Facebook

Probably like most of you, I am concerned about the privacy of Facebook. Some people suggested that I use the HTTPS address instead. Unfortunately, many links in the HTTPS page itself link back to ...
138
votes
2answers
157k views

What does outputting to /dev/null accomplish in bash scripts? [duplicate]

Oftentimes I run into small bash scripts that use this sort of syntax in if statements: some command > /dev/null 2>&1 What is the purpose of outputting to /dev/null like that, and what does the 2>...