General :: Windows - Getting WGET To Display A Less Verbose Output?
Jun 16, 2011
Is it possible to get WGET to only show download progress e.g. download bar, opposed to all of the connection info, as it does look a little ugly on the client side, is this possible to do?
I need to read some data from a web server and output to a serial port on the local machine. I was attempting to use the following command:
Code:
But the device attached to the serial port (a plate embosser) acts as though there is an extra newline after each line of data.
It parses the data sent according to it's own format, which includes a format string in <> followed by a data block containing one data field per line, with the whole block surrounded by <>,
For example:
Code:
seems to output as though it were:
Code:
I can verify that the web server is outputting the former (and it looks correct if I send the wget output to console).
I'm using this command: wget --convert-links -np --wait=20 --limit-rate=20K -m -k -p -U Mozilla -c [URL]
I can only use konqueror (asus eeepc 701) to completely view kneetest.html . The image taimoshan-front-qtr.jpg does not show, but if I right click and save, I can view the jpg. I was able to see this jpg earlier in the day, but not now. I've wget'd the site about 5 or 6 times in a day and sometimes I'll miss 2 images. I've also tried without the -U Mozilla option. BTW: Is there a way to get Mozilla to read files from wget?
I am trying to use awk command in perl. Below is my awk comamnd which works alone. awk '{Easttot=Easttot+$1} END {print Easttot}' MessagesProcessedEAST2Cnts.dat I would like to use this awk's output in shell script. I am using system command like below to get the out put. But it is not working. $Output = system("awk '{Easttot=Easttot+$1} END {print Easttot}' MessagesProcessedEAST2Cnts.dat'");
I use 'grep -Ri "mypattern" .' to search for all files in the current directory recursively that contain "mypattern". But this command returns every single occurence, so that if a given file has several occurences of the pattern, the screen fills up pretty quick. More than likely, there's a way to restrict the output so that it only displays each file once, no matter how many occurences it contains, but I couldn't find how to do it.
I am attempting to "export" the progress bar from wget display using sed. Basically, we have an app that starts wget to download a large file and we want to show a progress bar. Our application has a dbus interface to receive the download progress.
So we were think of a command like: wget [] | sed [] | dbus-send[] The problem at the moment is, how do you get the matched string out of sed and into dbus-send? I can get the progress string by: sed -u 's/[0-9]*%/&/'
This populated '&' with the correct percentage, but I cannot seem to get this out of sed.
I have a file that contains "ls -la" output. I would like to display only the filenames, none of the other information before it such as permissions, ownership, size, and date.Would the cut command be the best way to hit this, or should I use Vim or sed?
My script is not diaplying output as it contains awk while iterating over the array. My script is as follows:
shortcodes=( "56882" "58585" "58888" "57575" "57677" ); for shortcode in ${shortcodes[@]} do echo "`awk -F"|" '/ShortCode=tel:$shortcode/ { arr[substr($2,1,4)]++ } END { for( no in arr) { print no , arr[no] } }'
Consider a situation in which you want to display only specific lines of contents from a file or of a command's output. Yes, we have head and tail commands. But, how to view all the lines of a file except the last one or vise versa when we don't know the count of lines in advance?
Here, I don't want the last line (in italic) to be included in the result since the last line is due to "grep bash" in the devised command "ps au | grep bash". Well, we can rewrite the devised command:
Quote:
"ps au | grep bash | head -n 2"
But, again, here we are specifying the count of lines to be included. But, in the presented problem we don't know any count in advance!
The video projector I have to use this week projects an image too large for its screen and spills over on every side.
Fixing the physical setup is not possible or at least unlikely for the moment: the only solution is to carefully resize and position windows so that they display in the visible part of the screen - using full-screen mode is out.
Is there a way around this via software, using xrandr for example?
# xrandr doesn't have a padding option...xrandr --output VGA1 --mode 1360x768 --left-of LVDS1 --padding 200
If a wget download is interrupted (like if I have to shutdown prematurely), I get a wget.log with the partial download. How can I later resume the download using the data in wget.log? I have searched high and low (including wget manual) and cannot find how to do this. Is it so obvious that I did not see it? The wget -c option with the wget.log as the argument to the -c option does not work. What I do do is open the wget.log and copy the URL and then paste it into the command line and do another wget. This works but the download is started from the beginning, which means nothing in the wget.log is used.
I have two machines on a local area network (xp box and xubuntu box) and I want audio from both machines to be played from the same set of speakers. The problem is, the xubuntu machine doesn't have any sound output. There is no onboard sound card and all expansion slots are pci-x, so short of buying a pci-x sound card my only option for playing sound is to route audio through LAN to my xp computer.
I already have a program that will let me play music on one computer from another's speakers, but I am trying to set up a stream so that games and internet sound can be heard. Is it possible for me to do this?
i am having problem with displaying my text. my text file is displayed in such a way and is called test.......
Code:
Sam Worthington ... Jake SullyasZoe Saldana ... NeytiriasSigourney Weaver ... Dr. Grace AugustineasStephen Lang ... Colonel Miles QuaritchasJoel Moore ... Norm Spellman (as Joel David Moore)asGiovanni Ribisi ... Parker SelfridgeasMichelle Rodriguez ... Trudy ChaconasLaz Alonso ... Tsu'teyasWes Studi ... EytukanasCCH Pounder ... MoatasDileep Rao ... Dr. Max PatelasMatt Gerald ... Corporal Lyle WainfleetasSean Anthony Moran ... Private FikeasJason Whyte ... Cryo Vault Med TechasScott Lawrence ... Venture Star Crew Chiefmore
What i am trying to do is for the program to read "as" and then from there start a new line... thus the expected output is...
Code:
Sam Worthington ... Jake Sully Zoe Saldana ... Neytiri Sigourney Weaver ... Dr. Grace Augustine
[code]....
I keep getting the error saying ...
Code:
editmain.cpp.98:error: initializer fails to determine size of 'str'
what does this mean, and how can i be able to format my file in the way i want?
I am trying to run a java .class file by double-clicking it. So far my attempts at running it have been successful, but I don't' know how to keep the display open to see what the output is.
I have two computers both running Ubuntu 10.04. I use my laptop to ssh to the other computer. If I start for instance firefox via ssh from my laptop to have the browser showing up on the screen attached to the computer I ssh to? The computer i ssh to is better in handling graphics so I want to connect it to the TV and use my laptop as remote-control.
I am using a 64-bit Slackware 13.1 distro (I chose 64 by mistake, to be honest, as I know there's less trouble with a 32-bit distro) and I have some problems with my consoles (in text mode). After changing the runlevel in ininittab to graphic mode (4), I can't enter any of my consoles. Actually, only ctrl+alt F1 shows some output, regarding the graphic mode (I'm currently using KDE4, the default for slackware 13.1) and F6 is the only normal consoles I have access to. However, if I log out and log in (with another user, maybe) there's no output anywhere (not on F1, neither on F6).
I have several program windows open on my main display (showing on my physical screen).I've created a second display for VNC connections (using vncserver :14).Is there a way I can move all open windows from the default display to the VNC display?
I must display two different windows (different application) on a single X display/screen., with a small sticky window that display buttons to switch from one (virtual) screen to the other.
Although I thought this would be an easy task for a simple window manager like fvwm, I didn't get it to work.
I've tried fvwm in combination with the FvwmPager, but I keep getting problems to place the different windows in the different virtual desk or page (automatically).
e.g. if you do: xterm -title "Hello" and xterm -title "There", I want Hello to go to virtual screen 1 and There to go to virtual screen 2.
I've also tried using metacity and switching between workspaces.
Is there an example configuration available? I'm not fixed on a specific window manager.
Does a KVM software solution exist that will allow you to utilize two monitors on multiple systems? I'd like to hook up my MBP to my displays, but have the flexibility to switch back to Windows/Linux on a whim.
I have two monitors. I would like the ability to use these monitors from all of my computers using a software-based KVM switch. The alternative is stopping my workflow and manually hooking up the monitors, which is the process I currently use and the process that I'm trying to automate. I'm wondering if such a product exists.
I have an sony vaio laptop and the screen is pretty small so i have connect to tv with a HDMI cable but opensuse doesnt show on the tv. How do i output either the same screen or an extended desktop ?
I have a Dell Latitude D610, and am running a 2.6.21.7 kernel. If I close the screen on the laptop, the display output switches to the external VGA output. When I open the screen, the display output does NOT switch back. This occurs when running X and when in command line mode. Is there any way to get the output to automatically switch back when I open the screen?
I am beginner in ubuntu. I wish to run the programs that will display a picture which use the ffmpeg, sdl and lame. When I type gcc -o exercise exercise1.c 'sdl-config --cflags --libs' to compile the program it give this such of error :gcc: sdl-config --cflags --libs: No such file or directory. I have installed the gcc packages, SDL, FFMPEG, LAME but still cannot display the output. What should I do with the gcc packages?
I am running a scan via nmap (nmap -sP) and the out put looks similar to this:
Nmap scan report for x.y.z.com (10.x.x.x) Nmap scan report for 10.x.x.x
If it can resolve the hostname it does, if not it just spits out the IP. I would like to know the best syntax to use with cut, or awk, so that the only output is either the IP or IP - HOSTNAME.
I tried troubleshooting this on the Ubuntu forums, but my thread went nowhere, so here I am! I'm REALLY hoping someone can help, because this is immensely frustrating.I just moved to a new house, with a new ISP. All of a sudden, all the machines running Ubuntu (there are 4 of them on my network) are having trouble rendering websites properly. Some websites are perfectly fine; some render with things missing (e.g., no photos or no CSS); some render as text-only; and some won't display at all - I get a "server not found" error.If I boot into Windows on any of these machines, there's no problem.To complicate matters more: Sometimes the "server not found" sites will decide to connect, then they'll fail again. This has been changing day to day (sometimes even hour to hour). Anything within the google.com domain is a good example of this.Two of the affected machines are desktops (one running headless as a server), and two are laptops. All four are running Ubuntu, but they're all running different kernels. The ONLY things these machines have in common is that they're running Ubuntu, and they're all connecting to the internet wirelessly.
Because things work properly in Windows without exception, and because (at least on the laptops) things work fine in Ubuntu on any other internet connection, I can rule out wireless network adapters. I have tried using two different wireless routers - no change. I have tried using 4 different web browsers - no change. I have tried plugging a laptop directly into the incoming connection, bypassing the router entirely - no change. I have tried purging and reinstalling Flash on one of the laptops - no change. I have tried to connect to affected websites using their IP addresses to rule out DNS issues - no change.This one has me completely stumped. The only thing I can think is that this is something to do with my ISP, but I can't imagine what it would be. I called the guy who runs the ISP (it's a local outfit run by one or two guys, as I'm living in the middle of nowhere), and he said there's nothing he's aware of at the ISP level that would be causing a problem like this.
The full screen console is brought up by ctrl+alt+F1. How do you get back to the windows display manager? Is it necessary to reboot?I am running Ubuntu 9.10 with Gnome.
The display under vlc is strangely colored in blue, or red missing. Anyway the balance isn't correct. I tried every output module but no one is correct. I am running 11.2/kde.