Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #6165

Re: Calling Ghostscript from BASIC

Path csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From Ronald <gettingchoppy@gmail.com>
Newsgroups comp.sys.acorn.programmer
Subject Re: Calling Ghostscript from BASIC
Date Mon, 15 Jun 2020 20:30:39 +1200
Organization -
Lines 27
Message-ID <6fd2e88058.beeb@-.-> (permalink)
References <587d6e2a47rhnews@dsl.pipex.com> <d5bc4f8058.beeb@-.-> <mpro.qbwl7i0191pbo01u8.news@stevefryatt.org.uk> <1cb5648058.beeb@-.-> <mpro.qbwrq502ujpdr01u8.news@stevefryatt.org.uk> <ecf7868058.harriet@bazleyfamily.co.uk> <1dc8c98058.beeb@-.-> <rc79ih$h23$1@dont-email.me>
Injection-Info reader02.eternal-september.org; posting-host="74d593cd36b5a4ccaa4a46b1e73628b3"; logging-data="4880"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX194b9h+zzmf+dGbSyUtsW8h"
User-Agent Messenger-Pro/1.00c (MsgServe/1.00a) (RISC-OS/5.24) NewsHound/v1.50-32
Cancel-Lock sha1:ntPPIlo/bW33ZyYljLsmlIuXoUk=
Xref csiph.com comp.sys.acorn.programmer:6165

Show key headers only | View raw


In message <rc79ih$h23$1@dont-email.me>
          druck <news@druck.org.uk> wrote:

> On 15/06/2020 03:51, Ronald wrote:
> > The FilerHRun module is not mentioned much these days but it may
> > have had this type of usage in mind.
> > It can run a binary directly from BASIC, but once again you have to
> > perform a wait. Haven't checked to see if SYS$RETURNCODE is possible.
> 
> It wont be. Sys$Return code is only valid if you explicitly run a 
> program via OSCLI. Any sort of FilerRun, TaskObey or other Wimp 
> mechanism will usually return to you straight away, and queue the 
> program to be run when they get the next Wimp Poll. Only they will be 
> able to read Sys$Return code when the program exits and you can't rely 
> on this variable once Wimp Poll is called, as something else may have 
> exited.
> 
> ---druck

OK, getting back to being better running the binary in an Obey
for that kind of simplicity then.
My Fetchmail program is in an obey file called by a Taskwindow.
It is well suited for Sys$ReturnCode it can range from O to 16 or so.
0 for mail received, 1 for no mail to retrieve, and higher numbers
reflect various authorisation or network faults.
Thanks
Ronald

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Calling Ghostscript from BASIC "Rob Hemmings (News)" <rhnews@dsl.pipex.com> - 2020-06-08 15:22 +0100
  Re: Calling Ghostscript from BASIC Harriet Bazley <harriet@bazleyfamily.co.uk> - 2020-06-08 15:39 +0100
    Re: Calling Ghostscript from BASIC "Rob Hemmings (News)" <rhnews@dsl.pipex.com> - 2020-06-08 15:44 +0100
    Re: Calling Ghostscript from BASIC Steve Fryatt <news@stevefryatt.org.uk> - 2020-06-08 16:19 +0100
      Re: Calling Ghostscript from BASIC Martin Wuerthner <spamtrap@mw-software.com> - 2020-06-08 20:22 +0200
        Re: Calling Ghostscript from BASIC Harriet Bazley <harriet@bazleyfamily.co.uk> - 2020-06-08 21:15 +0100
          Re: Calling Ghostscript from BASIC druck <news@druck.org.uk> - 2020-06-09 10:58 +0100
            Re: Calling Ghostscript from BASIC Harriet Bazley <harriet@bazleyfamily.co.uk> - 2020-06-09 15:09 +0100
              Re: Calling Ghostscript from BASIC Ronald <gettingchoppy@gmail.com> - 2020-06-13 13:01 +1200
                Re: Calling Ghostscript from BASIC druck <news@druck.org.uk> - 2020-06-13 12:03 +0100
                Re: Calling Ghostscript from BASIC Ronald <gettingchoppy@gmail.com> - 2020-06-14 01:29 +1200
        Re: Calling Ghostscript from BASIC "Rob Hemmings (News)" <rhnews@dsl.pipex.com> - 2020-06-08 23:37 +0100
  Re: Calling Ghostscript from BASIC Ronald <gettingchoppy@gmail.com> - 2020-06-14 16:38 +1200
    Re: Calling Ghostscript from BASIC Steve Fryatt <news@stevefryatt.org.uk> - 2020-06-14 07:40 +0100
      Re: Calling Ghostscript from BASIC "Rob Hemmings (News)" <rhnews@dsl.pipex.com> - 2020-06-14 08:48 +0100
      Re: Calling Ghostscript from BASIC Ronald <gettingchoppy@gmail.com> - 2020-06-14 20:27 +1200
        Re: Calling Ghostscript from BASIC Steve Fryatt <news@stevefryatt.org.uk> - 2020-06-14 10:01 +0100
          Re: Calling Ghostscript from BASIC Harriet Bazley <harriet@bazleyfamily.co.uk> - 2020-06-14 15:41 +0100
            Re: Calling Ghostscript from BASIC Ronald <gettingchoppy@gmail.com> - 2020-06-15 14:51 +1200
              Re: Calling Ghostscript from BASIC druck <news@druck.org.uk> - 2020-06-15 08:56 +0100
                Re: Calling Ghostscript from BASIC Ronald <gettingchoppy@gmail.com> - 2020-06-15 20:30 +1200
        Re: Calling Ghostscript from BASIC Harriet Bazley <harriet@bazleyfamily.co.uk> - 2020-06-14 15:44 +0100

csiph-web