
|
84799 packages online
|
|
 |
|
|
|
No screenshot available
|
|
This command lets you process the stacksize in cli-scripts. If the
numeric argument given to it is lower than the actual stacksize, it
will exit with value 5.
Usage:
syntax: stacksize n
returncode: 5 if stacksize is lower than n, or if n is missing
0 if stacksize is higher or equal to n
Example: You want to start a command in a batch file wich will use
20KB of stack. Normally you are using 4KB of stack, but maybe the user
has raised the size to 300KB to start e.g. maple from the shell, you don't
know. Setting the stack at this point to 20KB will be deadly for the
one really starting maple after executing your batch file. To avoid
such problems, you could now use the following script:
; This example raises the stacksize only if it ranges below a critical
; value
stacksize 20480 ; request the return code
if warn ; stack was lower than 20KB ?
stack 20480 ; yes, raise the stack
endif
Installation: Just move or copy bin/stacksize anywhere in your path,
e.g. cp bin/stacksize c:
The source can be found in the src directory.
Legal: stacksize is freeware, you can redistribute the archive as
long as the files 'stacksize' and 'stacksize.readme' are intact.
Thomas
|
Contents of util/batch/stacksize.lha
PERMSSN UID GID PACKED SIZE RATIO CRC STAMP NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic] 2822 5532 51.0% -lh5- 3e14 Sep 8 1995 stacksize/bin/stacksize
[generic] 171 256 66.8% -lh5- e844 Sep 8 1995 stacksize/src/stacksize.c
[generic] 693 1386 50.0% -lh5- 800d Sep 8 1995 stacksize/stacksize.readme
---------- ----------- ------- ------- ------ ---------- ------------ -------------
Total 3 files 3686 7174 51.4% Sep 9 1995
|
|
|
 |
Page generated in 0.04 seconds |
Aminet © 1992-2024 Urban
Müller and the Aminet team.
Aminet contact address: <aminet aminet net> |