Sponsored Content
Full Discussion: wget in a loop
Top Forums Shell Programming and Scripting wget in a loop Post 302212998 by Lilly on Wednesday 9th of July 2008 02:37:35 AM
Old 07-09-2008
wget in a loop

I have not done any scrpting before and also new to unix. Thanks.

I am using wget to download contents as below:

Code:
wget http://server/app/browse/downloadRaw?id=23456

I want to do this programatically. For example, I have a list of id in a text file as below:

list.txt

----------
23456
78910
..
..
.
.
-----------
How do I write a shell script to open list.txt and use that id and invoke wget command? Thanks.
Regards
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

wget help

i am trying to ftp files/dirs with wget. i am having an issue where the path always takes me to my home dir even when i specify something else. For example: wget -m ftp://USER:PASS@IP_ADDRESS/Path/on/remote/box ...but if that path on the remote box isn't in my home dir it doesn't change to... (0 Replies)
Discussion started by: djembeplayer
0 Replies

2. Shell Programming and Scripting

wget

Hi I want to download some files using wget , and want to save in a specified directory. Is there any way to save it.Please suggest me. (1 Reply)
Discussion started by: mnmonu
1 Replies

3. Shell Programming and Scripting

wget help?

can someone please help in understanding this shell script? wget --progress=dot:mega --cut-dirs=4 -r -c -nH -np --reject index.html*,icons/*.gif \ http://*****.oz.xxxxx.com:<portnum>/omcsm/releases/dew/${UPGRADE_VERSION}/ (1 Reply)
Discussion started by: dnam9917
1 Replies

4. UNIX for Dummies Questions & Answers

Wget

...... (1 Reply)
Discussion started by: hoo
1 Replies

5. Shell Programming and Scripting

WGET help!

Hi Friends, I have an url like this https://www.unix.com/help/ In this help directory, I have more than 300 directories which contains file or files. So, the 300 directories are like this http://unix.com/help/ dir1 file1 dir2 file2 dir3 file3_1 file3_2... (4 Replies)
Discussion started by: jacobs.smith
4 Replies

6. Shell Programming and Scripting

awk loop using array:wish to store array values from loop for use outside loop

Here's my code: awk -F '' 'NR==FNR { if (/time/ && $5>10) A=$2" "$3":"$4":"($5-01) else if (/time/ && $5<01) A=$2" "$3":"$4-01":"(59-$5) else if (/time/ && $5<=10) A=$2" "$3":"$4":0"($5-01) else if (/close/) { B=0 n1=n2; ... (2 Replies)
Discussion started by: klane
2 Replies

7. UNIX for Dummies Questions & Answers

Wget help

How can I download only *.zip and *.rar files from a website <index> who has multiple directories in root parent directory? I need wget to crawl every directory and download only zip and rar files. Is there anyway I could do it? (7 Replies)
Discussion started by: galford
7 Replies

8. Shell Programming and Scripting

Wget and gz

Can wget be used to goto a site and piped into a .gz extrated command? wget ftp://ftp.ncbi.nlm.nih.gov/pub/clinvar/vcf_GRCh37 | gunzip -d clinvar_20150603.vcf.gz (1 Reply)
Discussion started by: cmccabe
1 Replies

9. Shell Programming and Scripting

Wget - working in browser but cannot download from wget

Hi, I need to download a zip file from my the below US govt link. https://www.sam.gov/SAMPortal/extractfiledownload?role=WW&version=SAM&filename=SAM_PUBLIC_MONTHLY_20160207.ZIP I only have wget utility installed on the server. When I use the below command, I am getting error 403... (2 Replies)
Discussion started by: Prasannag87
2 Replies

10. Homework & Coursework Questions

Loop Script with wget until exit is typed

Morning all, I am attempting to complete the below script which will do the following (skip the ping part) using Bash. Prompts the user to type in a URL to download, or to type exit to exit the script. If a URL is typed, wget to download the webpage and then loop back to prompting for a... (2 Replies)
Discussion started by: Jgerds1990
2 Replies
DI-NETBOOT-ASSISTANT(1) 					   User Commands					   DI-NETBOOT-ASSISTANT(1)

NAME
di-netboot-assistant - Debian-Installer netboot assistant SYNOPSIS
di-netboot-assistant [-hv] [--verbose] [--offline] {[install image...] | [purge image...] | [rebuild-menu] } [--arch=arch] DESCRIPTION
di-netboot-assistant is a simple tool to download and extract latest debian installer netboot images. Unless the -h, --help, -v, or --version option is given, one of the commands below must be present. install install is followed by a repository name desired for installation. The repository name has to be one of those declared in /etc/di- netboot-assistant/di-sources.list. The image will be installed/extracted in the default location (declared in /etc/di-netboot- assistant/di-netboot-assistant.conf). purge purge will remove a previously installed d-i netboot image, according to the image name specified. OPTIONS
rebuild-menu rebuild-menu will rebuild the to level menu. It's only usefull if you have installed some client images that have such top level menu (like i386, amd64 and ia64). This command takes no argument. -h, --help Print this message and exit -v, --version Print script version and exit --arch=arch Specify the architecture you want to install or purge. The architecture you can use for the install action must be declared in /etc/di-netboot-assistant/di-sources.list. The architecture you can use for purge action in one of those you previously installed ! The usable architectures can be listed by leaving --arch= empty. The default architecture is the current one (as reported by dpkg's APT::Architecture). --verbose Verbose messages --offline Don't download the file (simply re-extract and build menu) PROXY
di-netboot-assistant uses wget or curl to actually download the files. You can set the environnement variables accordingly. AUTHOR
di-netboot-assistant was written by Frank Lin PIAT <fpiat@klabs.be>. Franklin Piat May 2008 DI-NETBOOT-ASSISTANT(1)
All times are GMT -4. The time now is 03:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy