Amiga Developer Site by i n n o i d e a | MorphOS | Amiga Developers | Compilers | Documents | Dev-HardFile v1.11 for UAE / real Amiga - readme - shot) | Unique/All Visitors: 77257/570053
Search manual for function in the   
AmigaDOS/Status

     Status (V1.3, 2.x, 3.x internal) 


     NAME
          Status - Display the currently running CLI processes.

     SYNOPSIS
          Status tasknum [FULL] [TCB] [CLI=ALL] [COMMAND=COM]

     DESCRIPTION
            The most common use of Status is to find what 
        background processes are still executing, this can be in 
        preparation to sending them a signal with Break, or to 
        find out if all your programs are completed before 
        turning off the computer.  The various options to this 
        command display information which may or may not be 
        useful, depending on your needs.  The default behavior of 
        Status is to display the CLI numbers and names of all 
        currently active processes. You can get information on a 
        specific process by typing Status .

            You can also find out if a specific command is 
        executing using the COMMAND keyword.  This can be useful 
        in scripts, since if the command is NOT found, the WARN 
        fail level will be set.  Otherwise, a 0 fail level is 
        returned.  This is useful with shells that support 
        command substitution to do things like send BREAK codes 
        to processes.

     KEYWORDS

        taknum
            The number of the task which STATus is to report on. 
        If tasknum is not specified, all active tasks are 
        reported.

        FULL
            Displays all the information normally reported by 
        STATUS if both the TCB and ALL were both specified. This 
        keyword is completely optional.

        TCB
            This displays all information concerning stack size, 
        global vector size, and priority of all system tasks. 
        This keyword is completely optional too.

        CLI or ALL
            Specifying these keywords forces STATUS to report of 
        the status of all the CLI tasks.  This is the same as 
        running Status without any keywords. The CLI and ALL are 
        interchangeable.

        COMMAND or COM
            Added with 1.3, this prints the task number of the 
        CLI from which the 'filename' program was run. This lets 
        you send a break to a program using a script file. A 
        return code of 5 (Warn)is returned if that command is not 
        found.

     EXAMPLE
          1. To find out everything about all executing
          processes.

               Status FULL

          2. Here is an example using command substitution that
             will send a break to the process executing the
             ClockPtr command:

                  Break `Status Command ClockPtr`

            Note that the above assumes you are using 2.x/3.x's 
        backtick function.  You might find it interesting to 
        compare this example with the more complex one given for 
        1.3: 

                  STATUS >ram:temp COMMAND ClockPtr
                  BREAK NIL: ?
                  DELETE ram:temp

        Both of these accomplish the same thing!

20050409155750 - Lorence Lombardo - for (AmigaDOS/Status)
Hello,
      I am trying to do the equivalent to a status/break in
blitz. Does any one know how to do this ? If so do you have a 
small example ?

Logo by Emeric/SH
AmigaDOS/Status

No examples found...


Functions with "S":
Search
Set
SetDate
SetEnv
Skip
Sort
Stack
Status

Last 15 uploaded Examples:

20071229151342 AmiSSL/X509_STORE_CTX_cleanup
20070708011052 GeekGadgets/getlogin
20060705053954 AmigaOS/OpenWorkbenchObjectA
20050801035639 SDL/SDL_Surface
20050727092732 BlitzBasic/LSL
20050718102843 SDL/SDL_WarpMouse
20050718072844 GeekGadgets/fread
20050714051528 SDL/SDL_ActiveEvent
20050714051514 SDL/SDL_ActiveEvent
20050701171401 GeekGadgets/errno
20050701171347 GeekGadgets/errno
20050627101951 SDL/SDL_FreeSurface
20050623152729 GeekGadgets/fork
20050619153102 GeekGadgets/tcdrain
20050615182849 AmigaOS/OpenScreen

Last 25 posts:

20050613235812 SDL/SDL_SetGammaRamp
20050526065000 AmiTCP/unistd.h
20050413041558 AmiSSL/X509_STORE_set_default_paths
20050409155750 AmigaDOS/Status
20050129230614 MUI/Calendar.mcc
20050128185620 GeekGadgets/hstrerror
20041126154558 BlitzBasic/LoadBank
20041123170704 GeekGadgets/gcvt
20041105222909 AmigaOS/CheckSignal
20040712190839 SDL/SDL_SetVideoMode
20040627090529 SDL/SDL_Init
20040519133228 GeekGadgets/fork
20040407124555 AmigaOS/AllocMem
20040403101120 GeekGadgets/inet_ntoa
20040327172814 GeekGadgets/random
20040327172714 GeekGadgets/srandom
20040313211937 BlitzBasic/ANALYZEDISK
20040303135237 GeekGadgets/mktemp
20040301131355 GeekGadgets/realpath
20040301123615 GeekGadgets/gcvt
20040301114000 GeekGadgets/htonl
20040301100209 GeekGadgets/realpath
20040229095437 GeekGadgets/time
20040211132618 GeekGadgets/getpid
20040209102818 AmigaOS/OpenWindow




Amiga.sf
AMIGIFT

Locations of visitors to this page

Page took 0.562026 seconds to load.