I'm doing this wget script called wget-images, which should download images from a website. It looks like this now:

wget -e robots=off -r -l1 --no-parent -A.jpg

The thing is, in the terminal when i put ./wget-images www.randomwebsite.com, it says

wget: missing URL

I know it works if I put url in the text file and then run it, but how can I make it work without adding any urls into the text file? I want to put link in the command line and make it understand that I want pictures of that certain link that I just wrote as a parameter.

link|improve this question
Just add a command line argument to your script and use that as the URL. – Chris Oct 6 '10 at 12:53
feedback

1 Answer

You forgot to add the positional parameters to the wget call, i.e. "$@".

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.