redirection

Bat redirecting stderr to stdout has weird behaviour

I have a bat script which at one point redirects the stderr of a process to the stdout, and then writes it to a file. I used to do it like this: process.exe 2>&1 > file.txt However, this doesn't redirect the stderr to the file ( for reasons I can't understand ). When I modified the line to : process.exe > file.txt 2>&1 The whole t...

Korn Shell SegFault

I have found the following script causes a segmentation fault and core in kshell on AIX. Can anyone explain why I get the following results? Seg Fault doOutput(){ Echo "Something" } doOutput() >&1 OR doOutput(){ Echo "Something" } echo `doOutput()` No Output doOutput(){ Echo "Something" } doOutput() Correct doOutp...

Capturing the effects of SetConsoleTextAttribute when redirected through a Pipe?

I've redirected stdout of a child process spawned with CreateProcess to a pipe. It works fine except that, as far as I can tell, no information about color changes are coming through. The child process is using SetConsoleTextAttribute to change the text color--is it possible to detect this through the pipe and, if so, how? I'm ultimat...

How to redirect user to the page they were just at without them noticing?

The website viewer would be at page A, click a link that sends then to page B, but I want them to return to page A without them noticing. When they click the link it changes the layout the viewer is browsing the site with, so the redirection code shouldn't erase or undo the cookies or whatever are stored with the link click. Thanks! E...

ASP.Net page redirection doubt

hi there. I'm kinda new to ASP.NET and I have much more experience with windows forms. I need to show a table with some result data in a page Now, with winforms I would do something like this ResultForm myForm = new ResultForm(); myForm.ResultDataTable = dataTable; myForm.Show(); Any tip on how could I do something similar with Asp...

Zend Framework: How to POST data to some external page (e.g. external payment gate) without using form?

Hi, I would like to have a user redirected to an external credit card gate. Of course I have to POST some user info to that gate, but I don't know how exactly can I do this. I know that I could do this by generating a html form with hidden or read-only fields and have a user click "Submit" button. But this solution is not perfect, beca...

Possible for hacker to force redirection from a given domain?

Hey everyone, I've got a section on my site which allows users to upload a link in their profile, to their MySpace account. In order to secure other users, I want to to hard code the domain name (www.myspace.com/) and append the user's (sanitized) input. To me, this seems pretty secure and ensures that it always goes to MySpace.com. How...

URL redirection problem

i have the below url http://bit.ly/cDdh1c When you place the above url in a browser and hit enter it will redirect to the below url http://www.kennystopproducts.info/Top/?hop=arnishad But where as when i try to find the base url (after eliminating all the redirect urls) for the same above url http://bit.ly/cDdh1c via a python prog...

page redirection with unknown pages

Hi friends, I am developing a website in php. when a user types a page which is not in my site, i want users to redirect to a page with an error message. how can i identify such things and how can i do this?? Thanks. ...

FluorineFX Aperture in Adobe AIR: How to get program standard output?

I have next command to run from my AIR application: chp.exe cmd /d /c ""process.bat" "params.tmp" > "log.tmp" 2>&1 && echo 0 > status.tmp" || echo 1 > "status.tmp"" It creates background invisible process and logs output and exit status of the process.bat to the log.tmp and status.tmp. chp.exe is a "Create Hidden Process" program (...

How do I read the registry in 32-bit c# app such that registry redirection works on 64-bit Windows 7

My boss just got Windows 7 and he tried running one of our installers which runs perfectly fine under XP. On Windows 7, the installer runs without giving any errors. However, it does not create registry keys under HKEY_LOCAL_MACHINE\SOFTWARE{Company}{product}. These keys get created correctly under XP. Has anyone encountered this iss...

YOURLS Redirect with Javascript

Hello, Currently I am using YOURLS PHP URL shorterning script. In their functions.php, seems like they support both redirection which is with PHP header location and javascript. Functions.php I want to redirect with javascript, which will show me the message before redirect. I found this coding inside functions.php // Redirect to ...

Is there a better alternative to preprocessor redirection for runtime tracking of an external API?

OK, I have sort of a tricky problem I'm attempting to solve. First of all, an overview: I have an external API not under my control, which is used by a massive amount of legacy code. There are several classes of bugs in the legacy code that could potentially be detected at run-time, if only the external API was written to track its ow...

Firefox window.parent.location

I've a Html page index.htm which has an iframe to page search.htm the search.htm has code like this function executeSearch() { window.parent.location = "/SearchResults.aspx?t=" + txt_Search.value; } this code executed now from index.htm page and it works great on IE and Chrome, but not FireFox ... is there any work ar...

How do I detect "the mode of redirection" using javascript?

Hello, During a browsing session, redirection usually occurs when, user clicks on an anchor element, user presses the reload button on browser, user clicks on any element and execute a javascript redirection, using window.location properties, programmatic (by javascript) redirection using window.location properties, (Th...

Images in IFRAME no longer showing after I log out of Flickr?

I have a iframe window which displays user's flickr images. I use the flickr.photos.search api to download the user's image from flickr. This works great when the user is logged into flickr. But when I explicitly log off the user from flickr and the yahoo network and then attempt to download the flickr images, I get redirected to www.y...

xmlhttprequest to spoof referer then redirect to another page?

Hello, I've created some code using curl (PHP) which allows me to spoof the referrer or blank the referer then direct the user to another page with an spoofed referrer. However the drawback to this is the IP address in the headers will always be the IP of my server, which isn't a valid solution. The question; Is it possible using cl...

asp.net redirect if maximum connections/sessions reached

hi is there a way to redirect a user when there are n people/sessions on a site. I have a requirement to redirect to a 'sorry we are busy, please try later' page if there are too many people currently engaging the site (this is to stop flooding a live business service that is behind the webpages). The ideal is that only new users (use...

Global.asax Redirects under Integrated Pipeline mode

I know that for redirects and server transfers to work in global.asax, the AppPool has to be configured with Classic Pipeline Mode. But is tehre a workaround for this to work in Integrated mode? Or is there any better way of redirecting users to Custom Error pages after Error was logged in Application_Error handler. Don't really want to...

how do I redirect a user to a certain page using .htaccess

I have the following rule defined in the .htaccess file of my webapplication's root directory. RewriteCond %{REQUEST_URI} !^/classes/captcha.php RewriteRule ^([^/]*)/([^/]*)$ /index.php?client=$1page=page1 Now what I want is that when a user types in http://xyz.com/abc/page1, the address bar of the browser should display the origina...