I've got a C++ unit test that produces useful output to stderr, and mostly noise (unless I'm debugging) to stdout, so I'd like to redirect the stdout to /dev/null.
Curiously enough, doing this seems to cause a segmentation fault.
Is there any reason why code might seg fault with "> /dev/null" and run fine otherwise?
The output is prod...
I have a main domain name associated with a WordPress site, and then I have a couple other domain names connected to that site as well. I want the other two domains names to point/redirect to specific pages on the site rather than the index page, which is the default. So when domain1.com is typed into the browser, it goes to maindomain.c...
Hi,
I have a aspx page that is inside a frame. I want to redirect to a new page but before that page loads, break out of the frame. I was using this js code
window.onload = TimeOutRedirect;
function TimeOutRedirect()
{
try
{
if (self.parent.frames.length != 0)
self.parent.location=document.location;
}
catch (E...
So I've got this jQuery AJAX call, and the response comes from the server in the form of a 302 redirect. I'd like to take this redirect and load it in an iframe, but when I try to view the header info with a javascript alert, it comes up null, even though firebug sees it correctly.
Here's the code, if it'll help:
$j.ajax({
type: 'PO...
I'm wondering how i would go about making the following application:
a user signs up, say with the username "johny-jones".
Lets say for example that my domain is www.example.com
if anyone emails [email protected] this email is redirected to johny-jones REAL email address
...
Hey, I want to use .htaccess to redirect the requested page to the exact same page on a different domain, and I want it to forward all POST data while CHANGING the address bar to the new domain, like a normal redirect.
Here's my code.
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.domain1.com/$1 [R=301,L]
The pr...
I'm building an internal URL shortening website for my company. Since so few people will use it, we're letting people choose their own custom shortened URLs. So, for example, you could have the shortened URL:
http://goto/toms-projects
We thought it would be cool to offer, in addition to a regular redirect, the ability to leave the ...
I just want to catch all requests and forward them internally to my catchall page with all POST data intact
Catch all page:
http://www.mydomain.com/addons/redirect/catch-all.php
I've tried so many combinations, but my server doesn't want to redirect internally if I specify more than catch-all.php
# Internally redirect all pages to "Ca...
Hi friends,
I'm working with PHP. I have an .htaccess file like below, and it redirects to homepage rather than 404 error page :/ what can be the problem here? Appreciate helps! thanks a lot!
ErrorDocument 404 /new/err404.html
RewriteEngine On
RewriteBase /new/
RewriteRule ^login.html$ index.php?s=login&a=loginDo [QSA,L]
RewriteRule ...
Hi, I am trying to manually implement a login system in ASP.NET 3.5. Basically, on load, I would like the site to check and see if user object is active, if not, than I want the login page to appear.
After user has logged in successfully, I would like the user to be able to access the same page he has requested originally.
for example...
I'm trying to use the Unix command paste, which is like a column-appending form of cat, and came across a puzzle I've never known how to solve in Unix.
How can you use the outputs of two different programs as the input for another program (without using temporary files)?
Ideally, I'd do this (without using temporary files):
./progA > ...
Firstly, this is not the headers already sent' problem.
I have an include file, that does the redirect. This works on every server I have tried it on except the production server, which runs windows.
When I run it on the production server, it only redirects the include file, not the entire page.
I have the main file, index.php:
<?php...
Hi,
Whats the best way to reload/redirect a page in PHP which completly removes all history/cache?
Which headers should I use?
The page today:
While clicking on a link, get-parameters is set and a script is running. When finished, I want to redriect and reload the page without the get-parameters. At first, it looks like nothing has h...
I have a specific file, let's call it 'myfile.abc', that I need to have redirected to a specific location, no matter what location it's requested from. For instance:
/folder1/myfile.abc
/folder2/myfile.abc
/folder3/myfile.abc
I need all the above to be redirected to (as an example):
/myfolder/myfile.abc
How do I achieve that within...
Is it possible on an IIS to redirect all files with the file extension .asp to one single file (i.e. switch.php, switch.cfm) and how?
Thx in advance for the upcoming solutions :)
EDIT:
version of IIS is "IIS 6.0"
...
So this can't be too hard but I can't figure it out...
I want my form in django (located at /file_upload/) to upload a file, add it to the database, and then redirect to a new page where the parameter is the id of the field that I've added in the database (located at /file/163/, say).
I've set up urls.py so that /file/163/ works just f...
Hi i'm wondering how to redirect a http://mysite.com/pdf/blah.pdf to http://mysite.com/pages/page.aspx for all pdf file requests in iis 6.0/asp.net. Haven't been able to find anything definitive by searching.
...
How can I check for the existence of an aspx page before attempting to redirect to it, so I can handle that case in my C# code?
Response.Redict("~/SomePage.aspx")
But I want to make sure that page really does exist before I call it. It works off of a string after all, so maybe I have a type or something, or maybe I have not created th...
Hi folks!
I need a method to redirect my Mac's audio output to a different computer on the same network as the Mac doesn't have audio output. I'm on Snow Leopard while the other computer which has speakers attached does not have any operating system atm.
Any tips appreciated.
Max
...
Is it possible for PHP to take a URL, wait for the redirects to go through, and then fetch the url of the page it's on?
...