Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!apple!oliveb!tymix!tardis!jms From: jms@tardis.Tymnet.COM (Joe Smith) Newsgroups: comp.sys.amiga.tech Subject: Re: Solution for EXECUTE: No K Directive Summary: "NewCLI from file" is not the same as "execute file" Message-ID: <476@tardis.Tymnet.COM> Date: 1 Aug 89 23:03:10 GMT References: <3020@blake.acs.washington.edu> <696@jc3b21.UUCP> Reply-To: jms@tardis.Tymnet.COM (Joe Smith) Organization: McDonnell Douglas Field Service Co, San Jose CA Lines: 34 From article <3020@blake.acs.washington.edu>, by dlarson@blake.acs.washington.edu (Dale Larson): > Second, why was it that I got the error message if the script was called > from my startup-sequence, but not if it was called from the CLI the > startup-sequence bombed into??? There are two ways to execute a script. One way is to give the file name as the "FROM" argument to a new CLI, as in: NewCLI CON:0/0/640/200 FROM S:startup-sequence which is in effect what happens when the system is booted. The second way is to use the Execute command, as in: Execute s:startup-sequence (or the equivalent, just typing the name of a file that has the "S" bit set in the file protection). The difference is that Execute looks for variables to substitute whereas NewCLI does not. In article <696@jc3b21.UUCP> fgd3@jc3b21.UUCP (Fabbian G. Dufoe) writes: > In response to your second question I'd hazard a guess that the >offending line in the startup sequence file contained redirection of >standard input or standard output. Execute uses the redirection symbols (< >and >) as brackets to surround parameters. The ".bra {" and ".ket }" lines >told it to use "{" and "}" instead. This has tripped me up many a time. Particularly when using something like: run nil: program nil: which looks like a request for the variable "" to be substituted. -- Joe Smith (408)922-6220 | SMTP: JMS@F74.TYMNET.COM or jms@tymix.tymnet.com McDonnell Douglas FSCO | UUCP: ...!{ames,pyramid}!oliveb!tymix!tardis!jms PO Box 49019, MS-D21 | PDP-10 support: My car's license plate is "POPJ P," San Jose, CA 95161-9019 | narrator.device: "I didn't say that, my Amiga did!"