McIDAS Learning Guide
Version 2006

[Search Manual] [Table of Contents] [Go to Previous] [Go to Next]


Getting Started - Stopping Commands

Every command being run has a Process IDentification (PID) number and a Parent Process IDentification number (PPID) associated with it. To stop a command on the workstation, you must find the PID for the command by checking the command status with the question mark (?) command and then using the KILL command. In this exercise, you will enter a command and then stop it.
  1. Enter the following command.
    Type:  ZLM
  2. Find the PID for the ZLM command by checking the command status.
    Press:  ?
         UID   PID  PPID  C    STIME TTY      TIME CMD
        user   593   362  0 08:59:33 ?        0:00 /usr/dt/bin/dtexec -open 0 -ttprocid > 
        user   564   563  0 08:59:26 ?        0:01 xterm -title zeppo : Xterm -e ksh -c >
        user  7870  7869  0 14:28:37 pts/13   0:02 mcimage -imageColors 128 -autoResize >
        user   565   564  0 08:59:26 pts/12   0:00 ksh -c echo Trying to establish conne>
        user   568   565  0 08:59:27 pts/12   0:00 rlogin zeppo
        user   574   569  0 08:59:28 pts/13   0:01 -csh
        user  7869  7863  1 14:28:36 pts/13   0:01 mctext -iw -c !@exec mcimage -imageCo>
        user   601   598  0 08:59:35 pts/14   0:00 rlogin zeppo -l mcidas
        user  7863     1  0 14:28:20 pts/13   0:01 mcenv -k 7849 -f 16 -e 5m -f 4@480x64>
        user   673   374  1 09:01:59 pts/3    1:32 netscape -install
        user  7921     1  1 14:50:36 pts/13   0:00   ZLM
    
  3. Find the PID for the ZLM command. Type KILL followed by the appropriate PID number and press Enter. For example, to stop PID 7921:
    WARNING: Be sure that you get the correct PID number. Accidently stopping the wrong process will produce unpredictable results.
    Type:  KILL 7921
    Alternate method (use the '/' (slash) command):
    Type:  / 7921
  4. Check the command status again to make sure ZLM is no longer running.
    Press:  ?
    You should see that ZLM is no longer listed in the list of processes.

  5. You can now EXIT McIDAS since we are at the end of this lesson.
    Type:  EXIT

[Search Manual] [Table of Contents] [Go to Previous] [Go to Next]