T.R | Title | User | Personal Name | Date | Lines |
---|
1963.1 | a handy thing... | WAV14::HICKS | Fan mail from some flounder? | Wed Dec 07 1988 10:24 | 4 |
| Hey, I've searched for a long time for just such a thing. Haven't
found it. It would make scripts one heck-of-a-lot more powerful!
<<Tim>>
|
1963.2 | Might I suggest...... | POLAR::GOSLING | Think KANATA INC. | Wed Dec 07 1988 10:49 | 15 |
| Not meaning to sound flippant, but AREXX (by William Hawes of
Conman fame) could accommodate your need quite handily - along with
just about anything else you would like to do with scripts. There
have been a couple of articles on AREXX lately - see V1/I3 of
AMIGA Transactor, and AMIGA World of a couple of months ago. If
you are not aware of the features, strengths, and potential of
this product you may want to look these articles over.
CAVEAT - ain't there always at least one :-)
AREXX isn't free! It's a commercial product so you have to buy
it. I personally have found the investment well worth it.
Art
|
1963.3 |
It's at WJG::AMIGA:SHELL.ARC
It's the C source code. I will download it and compile it then post the
executable as well.
John
| WJG::GUINEAU | | Wed Dec 07 1988 11:26 | 9 |
| The SHELL by Matt Dillon/Steve Drew I just posted does this and more.
It's at WJG::AMIGA:SHELL.ARC
It's the C source code. I will download it and compile it then post the
executable as well.
John
|
1963.4 | script termination | GILBRT::BEAUREGARD | read manual as a last resort | Mon Dec 19 1988 09:18 | 39 |
| well, I've decided to stay with a vanilla Amiga Dos Shell environment
and try to write/run any scripts with the existing limitations.
I wrote the following script to make life a little easier using
the CLI. It works fine with the exception of causing the Drive XX
is write protected requestor to appear if the drive I'm on is write
protected. Why is this script causing the write protect requestor
in the first place??
.key directory
if <directory> eq ""
skip listdir
endif
if exists <directory>
cd <directory>
skip end
endif
echo " "
echo " can't find directory "
echo " "
lab listdir
echo " "
echo " possible choices are "
echo " "
dir opt d
lab end
The script will list possible directories if no argument is provided,
and if a non-existent directory is given, I will get the "can't
find directory" message and then the list. If a proper directory
is given, then I will be CD'd to it. The requestor seem to be appearing
after the completion of the script. Did I terminate the script
incorrectly?
Roger
|
1963.5 | Just a guess... | VTHRAX::KIP | | Mon Dec 19 1988 10:04 | 4 |
| Could it be due to the fact that you're using an argument, therefore
EXECUTE is trying to create a T: directory for a temporary file
in your current directory? I don't think this explains why you
would get the requester near the end of the script, though.
|
1963.6 | fixed but not forgotten | GILBRT::BEAUREGARD | read manual as a last resort | Wed Dec 21 1988 13:19 | 12 |
| well, it appears that -1 is correct. I added a makedir and assign
t: to ram:t in my startup-sequence and the script no longer causes
the write protect requestor to appear on disks that are write
protected. I'm still confused as to why the requestor comes after
completion of the script. I'm not executing the script via the execute
command but rather I set the "S" field in the protection mask.
Apparently, this executes the script thru some other mechanism?
Roger
|
1963.7 | Same difference | FSDEV1::JBERNARD | | Wed Dec 21 1988 15:12 | 3 |
| Using the "S" bit or Script bit actually invokes Execute without
having to type > Execute filename.
|