Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Kevin Wells Newsgroups: comp.sys.acorn.programmer Subject: Re: Using WGET from basic Date: Mon, 12 Jan 2026 18:23:16 GMT Organization: A noiseless patient Spider Lines: 38 Message-ID: <20e2249a5c.Kevin@Kevsoft> References: <3e719a995c.Paul@phorefaux> Injection-Date: Mon, 12 Jan 2026 19:18:07 +0000 (UTC) Injection-Info: dont-email.me; posting-host="e5565ec354069bb6952682f5ed74a42e"; logging-data="2718874"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+XeFDFeFj3TrxeukReR0GKDmbJ9Xa8oBg=" User-Agent: Messenger-Pro/9.01 (MsgServe/9.01) (RISC-OS/5.31) NewsHound/v1.54 Cancel-Lock: sha1:Zer5c9sw78aPyRuBD4Dr2z6Z0ro= X-Notice: set X-Clacks-Overhead "GNU Terry Pratchett" Xref: csiph.com comp.sys.acorn.programmer:6590 In message <3e719a995c.Paul@phorefaux> Paul Stewart wrote: >Hi all, > >Recently started using WGET to fetch some files. >Is it possible to call this from a basic program and it mulitask in the >background? > >I have it working without issue from a basic program, it just single tasks >whilst it's downloading. Currently using: - > >command$="wget "+webfilepath$+" -O "+scrapfilepath$+wgetoptions$ + " >--show-progress" >SYS"XWimp_StartTask",command$ > >Added the --show-progress just so I can see it's doing something. > If you write to the wget command to an obey file (feb) then do a OSCLI("Filer_Run path to obey file") that will return control to the computer straight away, then you would need to check to see that the file has been downloaded. If you use the -S -o switches which is -S the Server response and the -o is saves a log file, that could go in the same directory as the download perhaps call it log? And then you would need to check that the log file is closed. I presume their is a command for that? -- Kev Wells https://kevsoft.co.uk/ https://ko-fi.com/kevsoft carpe cervisium Useless Fact 04 The number of islands around mainland Britain is 6289.