Skip to Content.
Sympa Menu

sm-sorcery - Re: [SM-Sorcery]Replacement for wget

sm-sorcery AT lists.ibiblio.org

Subject: Discussion of Sorcery related topics

List archive

Chronological Thread  
  • From: "M.L." <mlubrano AT sourcemage.org>
  • To: eric AT sandall.us, <sm-sorcery AT lists.ibiblio.org>
  • Subject: Re: [SM-Sorcery]Replacement for wget
  • Date: Fri, 22 Nov 2002 22:32:15 +0100

On Vendredi 22 Novembre 2002 22:29, M.L. wrote:
> On Vendredi 22 Novembre 2002 19:59, Eric Sandall wrote:
> > Dufflebunk said:
> > > There is an external script... it's called summon.
> > > Is wget needed for anything other than the scripts?
> > > I suppose this would have been a 0.8 thing and it's too late now that
> > > we are in 0.9 :/
> > > Oh well.
> >
> > Correct. This should be put off until post 1.0 (perhaps 1.1? ;)), as we
> > should focus on fixing the current sorcery before adding new features.
>
> Right Eric, this is precisely what I was about to write...
> We should now release 1.0. First of all.
>
> > -One of Four
> > a.k.a. sandalle


BTW, this little trick works fine here ;)
in /var/lib/sorcery/modules/url_handlers/url_http:

#---------------------------------------------------------------------
# url_http_call_wget <filename> <extension-less filename> <url>
#
# Private Function. Call wget to download the url. Set's FILE
# as a side-effect.
#
#---------------------------------------------------------------------
url_http_call_wget() {
local FILENAME=$1
local STRIPPED_FILENAME=$2
local URL=$3

url_http_erase $STRIPPED_FILENAME &&
# eval is used here due to screwy IFS (maybe)
# eval "wget $WGET_OPTIONS $URL" &&
eval "proz $URL" &&
FILE="$FILENAME"
}


--
//
// M.L.
// Linux User #36502 ; ICQ #23832402
//




Archive powered by MHonArc 2.6.24.

Top of Page