: LASTCMD, Utilities, Grab and Display Last Terminal Command    G LASTCMD V1.01-002 [3-JUN-1995] - Grab and Display Last Terminal Command 7 Copyright  1994, Chris Olive & Siemens Medical Systems . Written by Chris Olive <olive@sgi.siemens.com>      0 LASTCMD - Grab and Display Last Terminal Command; (c) Copyright 1994, Chris Olive and Siemens Medical Systems N ------------------------------------------------------------------------------  N LASTCMD allows a suitably privileged  user  (one  with  CMKRNL)  peek  at  theN typeahead  buffer of another terminal.  This allows one to grab another's lastN command no matter in what environment the target user may be.  As long as  theN environment   utilizes   the   terminal's   typeahead   buffer   (usually  viaN LIB$GETINPUT), LASTCMD will display that command.  Utilities using SMG do  notN use  the  typeahead  buffer  and  there are a few other exceptions.  (In theseN cases, LASTCMD will still report the last command  in  the  typeahead  buffer;N that  command  just  may  not be the very, very thing the user is doing at theN moment).  But overall, LASTCMD will grab the last  command  typed  by  anotherN user  and display it.  Use LASTCMD in place of Hunter Goatley's GETCMD utilityA when the target user is not in the DCL environment at the moment.     Syntax:  LASTCMD <terminal-name>  N Unfortunately, LASTCMD will not support RT devices  since  the  internal  dataH structure LASTCMD uses (UCB -> TTYTA) is not inherit with the RT device.  N LASTCMD utilitizes kernel mode code, so maintain the caution one should alwaysN maintain  when  using CMKRNL utilities.  It has been tested and is believed toN work okay.  However, neither I  nor  my  employer  can  be  or  will  be  heldN responsible  for  any  damages which result from the use or misuse of LASTCMD.N Use of LASTCMD implies that you understand all that.  Other  than  that,  have fun!  O _______________________________________________________________________________ &     ___  ___  ___ _   _  ___ _  _  ___M    /___   |  |__  |\ /| |__  |\ | /___    Chris Olive, VMS Systems Consultant L    ___/  _|_ |___ | Y | |___ | \| ___/       Internet: olive@sgi.siemens.comC            Medical Systems, Inc.                Voice: 708.304.7793 C          2501 N. Barrington Road.                 FAX: 708.304.7704 A         Hoffman Estates, IL  60195         CompuServe: 73740,1636 O _______________________________________________________________________________     