LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-04-2003, 02:21 PM   #1
ministre
LQ Newbie
 
Registered: Jul 2003
Posts: 28

Rep: Reputation: 15
IO redirection not working


Hello,

I am using bash as my shell.
I am compiling some java files and I will like to redirect the compile errors that I get to some text file.
So I issue the following command

javac myjavafile.java > debug

Nothing is written in the debug file and all the errors are displayed on the screen.
I did check the permission on the file debug to make sure I have the correct permission
I also try to pipe the output to more

javac myjavafile.java | more

again, everything is written to the screen and I cannot scroll up and down with more.

Does anyone have any idea of what is going wrong here ?

Thanks
 
Old 11-04-2003, 02:41 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531
Stderr is channel &2: "javac myjavafile.java 2> debug". Combining this, if you want and stdout and stderr in one log and be able to scroll tru it all, try "javac myjavafile.java 2>&1 | tee debug | less"
 
Old 11-04-2003, 02:50 PM   #3
Lostman
Member
 
Registered: Nov 2003
Location: Chicago, IL
Posts: 238

Rep: Reputation: 30
Don't you have to put the a file extension on it?

avac myjavafile.java > debug.txt

???
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Transparent redirection Hugo Orlando Linux - Networking 4 05-12-2005 06:26 PM
Output redirection rmartine Linux - Newbie 2 01-25-2005 07:31 PM
redirection in C pantera Programming 2 08-11-2004 02:06 PM
Redirection question... Zeracles *BSD 0 02-21-2004 12:11 PM
http redirection ovibis Linux - Networking 1 10-16-2003 02:08 PM


All times are GMT -5. The time now is 10:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration