Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #6252
| From | Kevin Wells <kev@kevsoft.co.uk> |
|---|---|
| Newsgroups | comp.sys.acorn.programmer |
| Subject | Re: Better way to check for wget |
| Date | 2021-01-25 14:24 +0000 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <356d64f458.Kevin@Kevsoft> (permalink) |
| References | <d253f5f158.Kevin@Kevsoft> <xoo*5xRay@news.chiark.greenend.org.uk> |
In message <xoo*5xRay@news.chiark.greenend.org.uk>
Theo <theom+news@chiark.greenend.org.uk> wrote:
>Kevin Wells <kev@kevsoft.co.uk> wrote:
>> Is their a better way to check for wget, either in the !Run obey file or
>> in the main application file in BASIC to check for wget?
>
>Perhaps something like:
>
>SYS "XWimp_StartTask", "wget -V" TO ;flags%
>IF (flags% AND 2) THEN ...
The trouble with that is it brings up the contents of wget -V in a
window that has to be closed.
Thanks for this, but Ronald May sent me an idea off list, that got me an
idea which I'm implementing in the application BASIC file rather than
the !Run file, in which I use X wget and send the log into the
applications scrap file and if the scrap file exist or not do what is
required.
>
>I think you have to use Wimp_StartTask because if you use OS_CLI there's a
>risk of replacing your BASIC program with the wget application and being
>unable to return when it finishes.
>
>This is a check that wget is either somewhere on your Run$Path or an alias
>and can successfully execute - if you can run 'wget -V' you know you have a
>functioning program, whereas not being in an expected place is only one of
>the things that could go wrong.
>
>Theo
--
Kev Wells
http://kevsoft.co.uk/ https://ko-fi.com/kevsoft
carpe cervisium
I am not an Alcoholic I am a Drunk. Alcoholics go to meetings.
Back to comp.sys.acorn.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Better way to check for wget Kevin Wells <kev@kevsoft.co.uk> - 2021-01-20 20:58 +0000
Re: Better way to check for wget Vince M Hudd <atdotcodotuk@dotcodotukat.co.uk> - 2021-01-22 12:15 +0000
Re: Better way to check for wget Kevin Wells <kev@kevsoft.co.uk> - 2021-01-25 14:23 +0000
Re: Better way to check for wget Jonathan Harston <jgh@mdfs.net> - 2021-01-31 04:23 -0800
Re: Better way to check for wget Theo <theom+news@chiark.greenend.org.uk> - 2021-01-22 13:49 +0000
Re: Better way to check for wget Sprow <news@sprow.co.uk> - 2021-01-22 10:20 -0800
Re: Better way to check for wget Kevin Wells <kev@kevsoft.co.uk> - 2021-01-25 14:24 +0000
Re: Better way to check for wget "John Williams (News)" <UCEbin@tiscali.co.uk> - 2021-01-25 17:12 +0000
Re: Better way to check for wget Ronald <gettingchoppy@gmail.com> - 2021-02-01 12:21 +1300
csiph-web