General :: Download 'complex' Links Via Command Line?
Feb 3, 2010
I'm not sure how to explain my situation. I would like to download the file <https://www.vmware.com/tryvmware/p/activate.php?p=free-esxi&lp=1&ext=1&a=DOWNLOAD_FILE&baseurl=http://download2.vmware.com/software/vi/&filename=VMware-VMvisor-Installer-4.0.0.Update01-208167.x86_64.iso> via the command line. I've tried a few different methods with wget, the best I get is an index.php file. I'm not at all familiar with php but a search for "wget php" yielded nothing helpful.
Let's say i have a link to a file http://www.domain.com/dir/myfile.ext
Is there a command line tool that will allow me to download this file. I'm looking for something like: download <http address> ... is there anything that simple?
I want to download a file from the Linux command line. Basically I'm using ssh and I'm trying to download a file to my file system on my laptop. How can I do that from the command line?
I need to download a file from a website which has a URL formatted like:
[URL]
This redirects to a .zip file which has to be saved. There is also a need to authenticate based on username and password.
I tried to use wget, curl and lynx with no luck.
UPDATE:
wget doesnt work with redirection. It simply downloads the webpage instead of the zip file. curl gives the error "Maximum redirection exceeded > 50 " lynx also gives the same error.
I am trying to figure something out as part of something else I am going to do. I was just wondering the easiest and quickest way to run a loop at the Linux command line which will make x amount of symbolic links when I need them.
I am using Debian 5.
I figure its something as easy as ~# foreach statement, then I just do a loop with the command to make a sym link.
I compiled the 2.6.31.6 kernel and <insert drumroll> it boots!(my first kernel roll, I'm kind of shocked actually) That's the good news. The bad news is that my NVIDIA drivers are gone in the wind. That's not entirely true as I can still boot into the old kernel and startx. Is there a way to download the driver using the command line for reinstall?
I need to replace a line in the lvm.conf file from: filter = [ "r|/dev/.*/by-path/.*|", "r|/dev/.*/by-id/.*|", "a/.*/" ] to: filter = [ "a|/dev/cciss/c0d0.*|", "a|/dev/disk/by-id/.*|", "r|.*|" ] And I was hoping there was a way to use sed or awk to do this in a script (as I need to repeat this on several machines).
All of the examples I've found don't see to work with all of the special characters in the line that I need to replace. Then I need to add a line after the above edit like this: types = [ "device-mapper", 253 ]
I'm trying to download two sites for inclusion on a CD:URL...The problem I'm having is that these are both wikis. So when downloading with e.g.:wget -r -k -np -nv -R jpg,jpeg, gif,png, tif URL..Does somebody know a way to get around this?
I need to write a script called '~/get_birthrate' which when invoked with a two letter country abbreviation(i.e, au,ch,ni), extracts the appropriate line which contains the information about the country's birth rate from the [URL] (where "ca.html" should be replaced with the appropriate two letter abbreviation). The output should look like:
$ get_birthrate au 8.69 births/1,000 population (2007 est.) $ get_birthrate ch 13.45 births/1,000 population (2007 est.) $ get_birthrate ni 40.2 births/1,000 population (2007 est.)
I would like to code a program that can play the shoutcast, eventally with lirc and sure without any X (command line). Is there a way to retrieve all those streams from their shoutcast website? I noted that the daily headlines availabe in each country arent there.
A few days ago I installed a fresh ubuntu 10.04 LTS without the X-Server (only cli) and I'm looking for a good Download Manager for rapidshare and megaupload free account that work with WebUI. I tried a some software :
- FatRat (doesnt work without X-Server) - Slimrat (doest have actualy a web ui) - Plowshare (no WebUI)
I would like to keep this simple and if possible use a piped command as opposed to an all out complex method.I have a script that does many things for me, and one of them builds a basic simple system report (I know about lshw, but this is for me to learn as well as be functional)
I would like to add another pipe to remove the"model name:" portion.I do not really want to use the store in a variable first solutions if I can help it.
I am having problems with symbolic links and the $PATH variable.I have a directory:# /usr/rulerX/squarewhere /usr/rulerX/square is a symbolic link such that:
# ls -la square --> square.hg.current My path variable is set as:
I am using rhel5 with ip 192.168.0.254.i am using rhel on vmware 7. when i run links 192.168.0.254 then i got error "bash : links : command not found" i want to know why this error is showing? when i use red hat without vmware then there is no problem.
i've gotten my fedora 12 to the point where i can run python3 scripts from command line and can call up python 2.6.2 idle with the command 'idle' from command line. what command will call up python3 (3.1.2 to be exact) idle?
I'm trying to download firefox or chrome for windows so that I can use it in wine. Trouble is when I try to dowload a windows version of either I get spoonfed the download link for the linux version only, which I obviously already have. I dont mind dowloading it from somewhere else if I have to, but dowloading it from the developers is usually the best option.Why are these, and probably other, websites spoonfeeding us, and with no choice but to be spoonfed? As a computer user it's patronizing, but as a linux user its just insulting.
I know my way around MS Windows much better, but I just don't feel right trying to program something for Android on a Microsoft operating system. I am interested in Android programming so I followed the instructions on [URL] to install the environment on my computer...
I just installed the JDK, SDK, Eclipse successfully (or I assume):
* When I get to Step 4 where I'm supposed to run 'android' it will not run. I get the error message "android: command not found" (I am definitely in the right directory).
** When I double-click it in nautilus, it opens up in gedit. I can set the permissions in nautilus (through the properties - Allow executing file as a program) and get it to work,
i have a Realtek RTL8192E Wireless LAN 802.11n PCI-E NIC card on my Samsung r580 laptop that i just installed Ubuntu studio 10.04 on. I am wondering how to get the wireless card working in Ubuntu. I saw some info on my card here *url #1 (the urls i reference are in the attached txt file called urls.txt because i couldn't post the actual urls because apparently i need to post 15 times or something which i don't have time for at the moment)* and then i went here to download ndiswrapper *url #2* and both of the links on that page don't work. I followed the instructions on this page *urls #3* to get the info on my card. here is the info when i typed "lspci -knn" into the terminal in ubuntu studio. Code: 00:00.0 Host bridge [0600]: Intel Corporation Core Processor DRAM Controller [8086:0044] (rev 12)
Kernel modules: intel-agp 00:01.0 PCI bridge [0604]: Intel Corporation Core Processor PCI Express x16 Root Port [8086:0045] (rev 12) Kernel driver in use: pcieport Kernel modules: shpchp 00:1a.0 USB Controller [0c03]: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller [8086:3b3c] (rev 06) Kernel driver in use: ehci_hcd
I have a simple log file which is very messy and I need it to be neat. The file contains log headers but are all jumbled up together thereforeI need to sort the log files according to the log headers. There are no static number of lines that means that there is no fix number of lines for the each header of the text file. And I am using AWK to sort out the headers.The Log files goes something like this: