bug-wget
[Top][All Lists]
Advanced

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

[Bug-wget] Re: WGET user forum?


From: Micah Cowan
Subject: [Bug-wget] Re: WGET user forum?
Date: Thu, 14 May 2009 14:57:39 -0700
User-agent: Thunderbird 2.0.0.21 (X11/20090318)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dalglish, Tom wrote:
> Hi Micah,
> 
>             I am a happy user of wget and use it on a daily basis.  Is
> there a user group???? I’d be happy to direct my questions there.

Hi Dalglish,

There is in fact: address@hidden I've Cc'd the list there.
> 
>             I use wget to mirror files from ftp sites. One of the
> problems is that – as a file is downloading – it appears in the local
> file directory as it is being written. As such, other applications can
> “see” “in flight” files. In my use case, after a file is mirrored, I
> need to load the file into a database. Since I do not know of a way to
> add a callback to wget (wget –callback-script=~/etc/loadFile.sh) one
> workaround would be to have a –tmpdir or –tmpfile option…… (or the
> callback one J)
> 
>             Is there a way to tell wget to use a tmpfile name until it
> is downloaded on disk and then do a “mv” command to the “real” filename?
>  That way, I can hide the in flight files from being visible until they
> are fully downloaded.

There's no mechanism to support that currently. I suppose one could rig
a script to follow wget's log output, though, and detect when a file has
finished downloading, so it can take appropriate action on it.

- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer.
Maintainer of GNU Wget and GNU Teseq
http://micah.cowan.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkoMk9MACgkQ7M8hyUobTrE41ACfWcmacXE57q21x/syD5nZZbqO
yJUAn279JQZnS115lm+9DtGt+hDMAxzj
=UyAl
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]