Re: check for existence of file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When I do a download with wget, I use:
wget -bchttps://example.com/install_2023-01-03.iso
This does a couple things for me while downloading since I can then use:
wc -l wget-log|grep -i saved
If I use up-arrow once then hit enter that second command gets run again.
I monitor the download progress and find when the file is saved with
minimal screen clutter normally produced by wget.



Jude <jdashiel at panix dot com>
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)

.

On Sat, 7 Jan 2023, Linux for blind general discussion wrote:

> Tim here.
>
> I usually use the "-c" option with wget which continues an interrupted
> download if the server supports it:
>
>   wget -c https://example.com/install_2023-01-03.iso
>
> which isn't quite the same, but has saved me many hours of
> re-downloading things if my ISP connection drops in the middle of
> a download.
>
> -tim
>
>
> On 2023-01-07 16:29, Linux for blind general discussion wrote:
> > The script c-jenux.sh checks for existence of a specific Jenux iso and
> > lets the user know if it exists and does not download the file.  I'm
> > finding this useful for this particular project and I figure others may
> > find it useful to check for other files as well so I'll post this below.
> >
> > #!/usr/bin/env bash
> > # file: c-jenux.sh - check for bad iso
> > wget --spider -S https://nashcentral.duckdns.org/projects/Jenux-2022.12.04-dual.iso 2>&1|grep -i remote
> >
> >
> > Jude <jdashiel at panix dot com>
> > "There are four boxes to be used in defense of liberty:
> >  soap, ballot, jury, and ammo. Please use in that order."
> > -Ed Howdershelt (Author, 1940)
> >
> > .
> >
> > _______________________________________________
> > Blinux-list mailing list
> > Blinux-list@xxxxxxxxxx
> > https://listman.redhat.com/mailman/listinfo/blinux-list
> >
>
> _______________________________________________
> Blinux-list mailing list
> Blinux-list@xxxxxxxxxx
> https://listman.redhat.com/mailman/listinfo/blinux-list
>
>

_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/blinux-list




[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]