🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #4421

Re: AmigaDOS scripts and SKsh (need help)

#4421
From: Steve Koren
Date: Wed, 18 Jul 1990 01:27
37 lines
2465 bytes
> Ok, here is my question:  When I try to execute an AmigaDOS script, the
> script will not execute until I give Sksh the exit command, then since I
> have not set LOGOUT='endcli', control is returned to the CLI and then the
> script executes, i.e, what happens is that when I try to execute the script,

The best I can do at the moment is to offer this, which I've taken from the
yet-unreleased addendum to version 1.5:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          A Word about Command Invocation under SKsh

            SKsh  does  not  actually invoke external commands itself.  In-
            stead, it builds a  command line with all passed parameters and
            passes this  command line to ARP.  However, there are differing
            requirements  for  various types of AmigaDos  programs (such as
            BCPL  versus  Lattice C).  Occasionally ARP will fail to invoke
            a  particular program correctly.  It does quite a good job con-
            sidering  the  situation, but sometimes it will fail.  I unfor-
            tunately  cannot  do  anything about this in SKsh, so if  there
            are few  programs you cannot invoke correctly, you will have to
            invoke them from the AmigaDos shell.

            Fortunately,  however,  AmigaDos  2.0  will  provide a standard
            method  of  program invocation.  When I can compile SKsh to use
            that  feature,  the  problem will be eliminated.   (That  will,
            however, mean that SKsh will run only under AmigaDos 2.0)   Un-
            til then, there is nothing I can do to help.  Sorry!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I realize that's not much help right now, but there's not much I can do.
I tried around 4 different methods of program invocation before
settling on ARP as the best, but its not perfect.  The good news is that
Commodore has provided a "real" method to invoke programs under
2.0 (bravo!).

   - steve
Technical Details
Message-ID: <13920074@hpfelg.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!hplabs!hpfcso!hpfelg!koren
References: <3682@bingvaxu.cc.binghamton.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!hplabs!hpfcso!hpfelg!koren
From: koren@hpfelg.HP.COM (Steve Koren)
Newsgroups: comp.sys.amiga.tech
Subject: Re: AmigaDOS scripts and SKsh (need help)
Message-ID: <13920074@hpfelg.HP.COM>
Date: 18 Jul 90 01:27:59 GMT
References: <3682@bingvaxu.cc.binghamton.edu>
Organization: HP Elec. Design Div. -FtCollins
Lines: 37