Tag Info

New answers tagged

0

I've used ls and ls -a but really should've used ls -al before asking the question. ls -al shows -rw-r--r-- 1 Jing staff 49630 27 Nov 11:02 drwxr-xr-x 9 Jing staff 306 19 Feb 09:32 .. drwxr-xr-x 3 Jing staff 102 19 Feb 09:46 ~ drwxr-xr-x 8 Jing staff 272 19 Feb 10:09 . drwxr-xr-x 15 Jing staff 510 19 Feb 00:49 .. drwxr-xr-x ...


0

If you have mc installed, use it


1

You didn't create ..; that entry always exists in every directory and refers to the parent directory. You may want to check the parent directory for extra files. To refer to ~, you can put it in quotes to prevent the shell from expanding it: "~".


0

How many level deep are you getting? If you need more than 5, you need to provide the -l option. man wget -r --recursive Turn on recursive retrieving. The default maximum depth is 5. -l depth --level=depth Specify recursion maximum depth level depth.


0

In wget you may use --content-disposition option which is useful for some file-downloading CGI programs that use "Content-Disposition" headers to describe what the name of a downloaded file should be. In example: wget --user-agent=Mozilla --content-disposition -E -c http://example.com/ For more complex solutions (like authorisation required), use cookie ...


0

For obtaining links to images or files that don't necessarily use a filename suffix in the URL, I would use wget with the --accept-regex option. I have changed the script I have used to your specific case: wget -nd -r -l 2 --accept-regex '/attachmentshow' www.domain.tld Explanation: -nd no-directories, to prevent creating to hierarchy of directories ...


0

while IFS=";" read id a remain do while [ "$remain" ] do IFS=";" read a b test d i_url remain <<< "$remain" if [ "$test" == "kivirealty-original" ] then if [ ! -d "some_path/$id" ] then mkdir -p "some_path/$id" fi wget -nd -P "some_path/$id" "$i_url" ...


0

I'd use awk to create the commands and pipe the output into sh if all works as desired. Here's a code skeleton (you'll have to add the desired wget options)... awk -F\; ' { printf "mkdir -p %s/%s\n", "somepath", $1 for (i=7; i<=NF; i+=5) { printf "wget ... %s ... %s/%s ...\n", $i, "somepath", $1 } } ' | sh


0

This from the wget manpage, which probably explains what you're seeing: -k --convert-links After the download is complete, convert the links in the document to make them suitable for local viewing. This affects not only the visible hyperlinks, but any part of the document that links to external content, such as embedded images, links to ...


1

From wget manual: ‘--user=user’ ‘--password=password’ Specify the username user and password password for both FTP and HTTP file retrieval. These parameters can be overridden using the ‘--ftp-user’ and ‘--ftp-password’ options for FTP connections and the ‘--http-user’ and ‘--http-password’ options for HTTP connections. So what you ...



Top 50 recent answers are included