home *** CD-ROM | disk | FTP | other *** search
-
- STATIS : A Status Improvement
- =============================
-
- STATIS V1.24, © Dominique Lorre, 1994 All rights reserved.
-
- This software is in the public domain. You can distribute it freely
- as long as the copyright notice and documentation remains intact.
-
- Format: STATIS [<process>] [FULL] [TCB] [CLI|ALL] [RC] [EXT|EXTENDED]
- [CIO] [COM|COMMAND <command>] [ARGS|ARGUMENTS <arguments>]
- Template: PROCESS/N,FULL/S,TCB/S,CLI=ALL/S,RC/S,EXT=EXTENDED/S,CIO/S,
- COM=COMMAND/K,ARGS=ARGUMENTS/K:
- Purpose: As the C: command STATUS, to list information about processes
-
-
- History: While I frequently use the STATUS command, I had a great need
- of knowing exactly what arguments have been passed to each
- shell process, specially when I compile more than one program
- at a time, creating many processes of the same name.
- Thus, I have wrote a little command to fix the problem.
- After that, I have thought that it could be useful to the Amiga
- community and decided to release it in the public domain.
-
-
- What does STATIS ?
-
- STATIS reacts much like the command STATUS (as far as I
- know ;-) ) but have five great improvements :
-
-
- - STATIS tells you if a process have been run in the background
- by printing the # flag in front of the process number :
-
- STATIS
- PROCESS COMMAND
- 1 At prompt
- # 2 ConClip
- # 3 Workbench
- 4 At prompt
- # 5 list
- # 6 STATIS
-
- - STATIS displays the result codes of a process if you specify
- the RC option :
- STATIS RC
- PROCESS COMMAND RC RES2
- 1 At prompt 0 0
- # 2 ConClip 0 0
- # 3 Workbench 0 0
- 4 At prompt 20 205
- # 5 list 0 0
- # 6 STATIS 0 0
-
- Here, you can see that the process 4 failed because the file was
- not found.
-
- - STATIS prints the arguments of the command. For example
- STATIS EXT could give the following result :
-
- PROCESS COMMAND ARGUMENTS
- 1 At prompt
- # 2 ConClip
- # 3 Workbench
- 4 At prompt
- # 5 list sys: all LFORMAT "Echo %S%S"
- # 6 STATIS EXT
-
- - STATIS allows search of a command by NAME, by ARGUMENTS, by
- both NAME and ARGUMENTS and also supports PATTERN MATCHING !
- For example :
- STATIS COM=S#?
- would give :
- 6
-
- STATIS ARG=% ; this means which processes do not have any
- argument ?
- would give :
- 1
- 2
- 3
- 4
- 6
- STATIS COM=% ; which processes do not have any command loaded ?
- would give:
- 4
- STATIS FULL COM=STATIS ARG=FOO
- would give no answer because there is no STATIS FOO command
- actually loaded.
-
- If the ARG or COM options find a command, then STATIS will
- return with a WARN.
-
- - STATIS search for the CURRENT IO of a command with the CIO
- option:
- STATIS CIO
-
- PROCESS COMMAND INPUT OUTPUT
- 1 At prompt CON: CON:
- # 2 ConClip NIL: NIL:
- # 3 Workbench NIL: NIL:
- 4 At prompt CON: CON:
- # 5 list NIL: NIL:
- # 6 STATIS NIL: Ram Disk:AZTempResult199C53
-
- which makes you find a lot of things ! (thank you Jean-Michel)
-
- The FULL option is very complete and can be a little confusing in
- case of very long commands and/or redirections :
-
- STATIS FULL
- PROCESS STACK GVT PRI COMMAND RC RES2 ARGUMENTS INPUT OUTPUT
- 1 20000 150 0 At prompt 0 0 CON: CON:
- # 2 4000 150 0 ConClip 0 0 NIL: NIL:
- # 3 6000 150 1 Workbench 0 0 NIL: NIL:
- 4 20000 150 0 At prompt 20 205 CON: CON:
- # 5 20000 150 0 list 0 0 sys: all LFORMAT "Echo %S%S" NIL: NIL:
- # 6 4096 150 0 STATIS 0 0 FULL NIL: Ram Disk:AZTempResult199C53
-
- STATIS requires the dos.library of version 37 or greater (V2.04).
- If not found, the program would exit with the FAIL code set.
-
- KNOWN BUGS
- Sometimes, if STATIS is called just when a command is being
- unloaded, some trash can appear.
-
- The length of the strings is limited to 80 characters.
- Bigger strings might produce unexpected results.
- WARNING
- The results codes are those of the preceding command only.
- If a command display some codes, it doesn't mean that the
- command has failed but that the PRECEDING one has failed.
-
- CONCLUSION
- You can send any question, commentary, suggestions or flames at :
-
- Dominique Lorre, Bois Jonquié 84240 La Tour d'Aigues, FRANCE
-
-
-
-
-
-
-
-
-
-
-
-
-
-