Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Simple redirect (or so I thought) Post 15897 by Halfmast on Thursday 21st of February 2002 12:38:27 AM
Old 02-21-2002
Simple redirect (or so I thought)

It should be real easy. All that I want to do is to redirect the error messages from a java compiler to an external file, so that I can read all of my error messages, not just the last ones that fit on my screen. In theory, it should go like this:

javac MyFile.java > errors.log

So, what am I doing wrong? It will create the error.log file, but won't direct anything into it. Suggestions? Am I just being stupid? I tried out a few other methods like tee, and nothing was happy.

Thanks
 

3 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

I thought I asked the question before but I haven't sorry

:D could any one answer my previous question... just looked through logg and found no such question that I had asked.. please any input would help \.. :confused: (2 Replies)
Discussion started by: moxxx68
2 Replies

2. UNIX for Dummies Questions & Answers

| Help | unix | grep | sort | uniq - Different output from what I thought would be the same

Hello, I'm having an consistency issue.... grep 'a' /usr/share/dict/words 1) This will highlight every 'a' in each word. grep 'a\{1,\}' /usr/share/dict/words 2) This will highlight 'a' if it occurs at least once in a sequence. So every 'a'. Output of 1) I would... (1 Reply)
Discussion started by: MykC
1 Replies

3. Web Development

Simple Vue.js Component to Redirect to External Web Page Using Vue Router

Vue Router has some quirks and on of the quirks is that it is not reliable when adding external links using the vue-router library. After struggling with many solutions, I have found that creating a simple Vue.js component like this one seems to work the best (so far): Component Example: ... (0 Replies)
Discussion started by: Neo
0 Replies
CGI::Application::Plugin::Redirect(3pm) 		User Contributed Perl Documentation		   CGI::Application::Plugin::Redirect(3pm)

NAME
CGI::Application::Plugin::Redirect - Easy external redirects in CGI::Application SYNOPSIS
package My::App; use CGI::Application::Plugin::Redirect; sub cgiapp_prerun { my $self = shift; if ( << not logged in >> ) { return $self->redirect('login.html'); } } sub byebye { my $self = shift; return $self->redirect('http://www.example.com/', '301 Moved Permanently'); } DESCRIPTION
This plugin provides an easy way to do external redirects in CGI::Application. You don't have to worry about setting headers or worrying about return types, as that is all handled for you. "redirect" does an external redirect, which means that the browser will receive a command to load a new page, and a fresh request will come in. If you just want to display the results of another runmode within the same module, then it is often sufficient to use the "forward" method in CGI::Application::Plugin::Forward instead. METHODS
redirect($url, $status) Interupt the current request, and redirect to an external URL. If you happen to be inside a prerun method when you call this, the current runmode will automatically be short circuited so that it will not execute. As soon as all prerun method have finished, the redirect will happen without the runmode being executed. The $status parameter is optional as the CGI module will default to something suitable. return $self->redirect('http://www.example.com/'); - or - return $self->redirect('http://www.example.com/', '301 Moved Permanently'); SEE ALSO
CGI::Application, CGI::Application::Plugin::Forward, perl(1) AUTHOR
Cees Hek <ceeshek@gmail.com> LICENCE AND COPYRIGHT
Copyright (c) 2005, Cees Hek. All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. DISCLAIMER OF WARRANTY
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED ORIMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSESSUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. perl v5.12.3 2011-06-25 CGI::Application::Plugin::Redirect(3pm)
All times are GMT -4. The time now is 05:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy