Path: csiph.com!news.mixmin.net!aioe.org!1mf3IW7nJT6qmjY9+xBS7w.user.gioia.aioe.org.POSTED!not-for-mail From: Kevin Wells Newsgroups: comp.sys.acorn.programmer Subject: Re: Better way to check for wget Date: Mon, 25 Jan 2021 14:23:05 GMT Organization: Aioe.org NNTP Server Lines: 36 Message-ID: References: NNTP-Posting-Host: 1mf3IW7nJT6qmjY9+xBS7w.user.gioia.aioe.org X-Complaints-To: abuse@aioe.org User-Agent: Messenger-Pro/8.04 (MsgServe/8.04) (RISC-OS/5.29) NewsHound/v1.52-32 X-Notice: Filtered by postfilter v. 0.9.2 Xref: csiph.com comp.sys.acorn.programmer:6253 In message Vince M Hudd wrote: >On 20/01/2021 20:58, Kevin Wells 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? > >[As well as the current method of checking for a system variable] > >Off the top of my head, something along the lines of: > >IfThere ".Library.wget" then Set >If "" <> "" THEN Set >If "" = "" THEN Error message 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. > >Not sure how sensible that is, TBH, having never needed to do something >similar. (And not having a RISC OS machine switched on to check. e.g. is >there a specific variable used for the library directory? Any other >locations it could potentially be squirrelled away in? etc.) > -- Kev Wells http://kevsoft.co.uk/ https://ko-fi.com/kevsoft carpe cervisium Useless Fact 03 You burn 3.5 calories each time you laugh.