LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-26-2008, 02:02 AM   #1
unclecameron
LQ Newbie
 
Registered: Feb 2004
Location: Selma, Oregon
Distribution: Debian Lenny
Posts: 5

Rep: Reputation: 1
console redirect elsewhere?


what's the easiest of directing ALL output sent to the console by a command to either somefile.txt or better yet $somevariable in a bash script? I can't seem to redirect wget progress bar output to a file using wget somelocation > somefile.
 
Old 11-26-2008, 09:49 AM   #2
nehaandrew
Member
 
Registered: Nov 2008
Posts: 53

Rep: Reputation: 15
I think this URL should help resolve your issue - http://linuxhelp.blogspot.com/2006/0...simple-in.html

Linux

Last edited by nehaandrew; 11-30-2008 at 01:16 AM.
 
Old 11-26-2008, 09:50 AM   #3
nehaandrew
Member
 
Registered: Nov 2008
Posts: 53

Rep: Reputation: 15
Or you could try :

wget --verbose somelocation > somefile
 
Old 11-26-2008, 11:40 AM   #4
unclecameron
LQ Newbie
 
Registered: Feb 2004
Location: Selma, Oregon
Distribution: Debian Lenny
Posts: 5

Original Poster
Rep: Reputation: 1
the problem is if I

Code:
wget http://ftp.osuosl.org/pub/ubuntu-releases/intrepid/ubuntu-8.10-alternate-amd64.iso > somefile.txt
I don't get the progress bar, it still shows up on the console, I suspect there must be some environmental variable doing this, but I can't figure out what it is
 
Old 11-26-2008, 11:51 AM   #5
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Use the -o option of wget. Also note that all the messages from wget are sent to the standard error, so redirecting the standard output is not enough.
 
  


Reply



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
Redirect SSH i/o to tty console Ryan100 Linux - General 2 05-03-2011 09:46 PM
Serial Console-redirect to another PC adenev Linux - Newbie 2 04-01-2009 07:21 PM
Redirect console out put to a file procfs Linux - Newbie 7 01-18-2007 11:29 PM
Can I redirect console to another framebuffer device when machine is running twomol Linux - Software 1 06-14-2006 11:52 AM
How to redirect console beep with ALSA to a soundcard? zimon Linux - Software 4 10-16-2004 06:58 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:10 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
Open Source Consulting | Domain Registration