home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / hacking / systems / vaxvmsus.doc < prev    next >
Encoding:
Text File  |  2003-06-11  |  7.5 KB  |  200 lines

  1.  
  2.                 _____________________________
  3.                /_____________________________\
  4.                /                             \
  5.                |       Inside Vax/Vms        |
  6.                |   Using Command Procedures  |
  7.                |                             |
  8.                |            By               |
  9.                |       Master Blaster        |
  10.                \_____________________________/
  11.                Advanced Telecommunications Inc.
  12.  
  13.  
  14.  
  15.  
  16. Note: The following is geared for the more advanvced hacker.
  17.  
  18.  
  19.      Part 1: Using Command Procedures.
  20.              ----- ------- ----------
  21.  
  22.      You  can  use  command procedures to automate  sequences  of 
  23. commands that you use quite often.  For example,  if you  always 
  24. use  the  DIRECTORY command after you move to  a  Sub-Directory 
  25. where  work  files  are  kept,  you can write  a  simple  command 
  26. procedure to issue the SET DEFAULT and DIRECTORY commands for you.  
  27. The following example, GO_DIR.COM, contains two commands:
  28.  
  29. $ Set Default [perry.accounts]
  30. $ directory
  31.  
  32. Instead of using each command alone,  you can execute  GO_DIR.COM 
  33. with the @ command:
  34.  
  35. $ @Go_Dir
  36.  
  37. This  command tells the DCL command interpreter to read the  file 
  38. GO_DIR.COM and executes the commands in the file.   So the command 
  39. interpreter  sets  your  default  directory  to[PERRY.ACCOUNTS]  and 
  40. issues the DIRECTORY command.
  41.  
  42. Note: DCL means Digital Command Language. (sorry)
  43.  
  44.  
  45.  
  46.  
  47. Formatting Command Procedures 
  48. ---------- ------- ----------
  49.      Use  the  DCL command CREATE to create and format a  command 
  50. procedure.   When you name the command procedure,  use the default 
  51. file type COM.  If you use this default, you don't have to use the 
  52. file type when you execute the procedure with the @ command.
  53.  
  54. Command  procedures  contain DCL commands that you want  the  DCL 
  55. command  intepreter  to execute and data lines that are  used  by 
  56. these commands.  Commands must begin with a dollar sign.  You can 
  57. start the command string just  after the dollar sign.
  58.  
  59. Data lines do not start with a dollar sign.h|Data lines are  used 
  60. as  input  data for commands.   Data lines are used ba7*UUVs[_2c!.VV 1e%MMU
  61. =55995RjRD  following  examle shows command and data lines in a  command 
  62. procedure.
  63.  
  64. $ mail
  65. SEND
  66. THOMAS
  67. MY MEMO
  68. Did you get my memo?
  69. $
  70. $ Show users thomas
  71.  
  72. The first 0%9 is a command and must start with a "$".   The next 
  73. lines  are data lines that are used by the mail  function;  these 
  74. lines must not start with "$".
  75.  
  76. Using Multiple Lines for One Command
  77. ----- --------%jjjjjjjjjjjjjjjjjj2H$ R$.+R.9HV--ZkR$,+++K W,=HZ7,-]ZY>$[X7~Pqualifers, 
  78. you  can make the command procedure more readable by listing  the 
  79. qualifers on seperate lines rather than runni> them  together.  To 
  80. do this, use the hyphen as a continuation character.  Don't start 
  81. the continued line with "$". For example:
  82.  
  83. $ print test.out -
  84.           /after=18:00 -
  85.           /copies=10 -
  86. z
  87. UUubA    AZj2Td(H(H(
  88. 
  89. UQ%9=559I=
  90. UIM5Rjjjjjjjjjjjjjjjjjjjjjjjjjjj2    
  91. T++RV,(WV,WR,+++F .k&V^V$:
  92. WW*k *V7(Z +V,,-ZWPL(J  ,(],*
  93. P)
  94. R +V,,-ZWRk &
  95. VR,+++F fT-
  96. ]ZyP3ommand 
  97. procedure are executing as if you were typing them.   You  cannot 
  98. execute  any other commands from your computer.   In batch  mode, 
  99. the   system  creates  a  seprate  process  to  run  the  =55y 
  100. procedure.   After  you use a batch job you  can continue to  use 
  101. the system while it executes.
  102.  
  103. Executing Command Procedures Interactively
  104. --------- ------- ---------- -------------
  105.  
  106.      To  execute  command procedure interactively,  type the "@" 
  107. command followed by the file specifications.   If you don't enter 
  108. the entire command specification, the system will use the current 
  109. disk, directory,9%1%U1Q9j4Vhh
  110. +Kk+KkRH+++F *FWk/H()))))))    *))))))    *))))))H(H$ p`,+++J  +KW
  111. RW>$]\y"CL level  from  which  you  issue 
  112. commands.   When  you log in and type commands at your  Computer, 
  113. you I Qssuing commands at your level zero.   If you execute  a 
  114. procedure,  the commands in the procedure are executed at command 
  115. level  1.   When the procedure ends and the DCL prompt is on your 
  116. screen, yoQI    -
  117. QbY%1RI=9dRH$
  118. bUO..Y[&ogin File
  119. - ------ ----- ----
  120.  
  121.      If  a system login file exists,  it is executed  before  the 
  122. personal  file.   When  the system login file  ends,  control  !M 
  123. pasged to the personal login file.  System and group login files 
  124. allow  a  system manager to make sure certian files are  executed 
  125. when a person logs in.
  126.  
  127. To make a system login file, you ha^ to have a managers account, 
  128. you use the name SYS$SYLOGIN to make the login file.
  129.  
  130.  
  131. Personal Login Files
  132. -------- ----- -----
  133.       
  134.      After  executing a system or group login  file,  the  system 
  135. a
  136. UQM  a  personal login file.   Use a personal login file  to 
  137. execute  commands  that  you  want to  that  you  want  to  issue 
  138. everytime you login.  Name the login command procedure LOGIN.COM 
  139. and pQQJQD9 ! U1Qa=%9!%I
  140. Q=Ie9jRT$(H(V+*Kk
  141. V,.([Y:Y9. K RVW+K+V.#!'KKKKKKKKKKKKKKKKKKKKKKKKKKKKKCC    You  can  create  a command procedure  that  specifies  only 
  142. parameters and(or)  qualifIM and then use the command  procedure 
  143. within a DCL command string.   This type of command procedure  is 
  144. useful  when there is a set of parimeters or qualifiers that  you 
  145. frequently use with one or moreAIQ%
  146. U1I commands.   To execute 
  147. the command string where you would normally use the qualifiers or 
  148. parameters.
  149.  
  150. For  example:  You could create a command procedure that contains 
  151. these qualifiers.    j4Thh    *TUTi*Ubj
  152. jEb
  153. *d)*UI$
  154. jiDUjmU%Uf*LUj(TH(HiRWVU-> ,+++J .k*VV
  155.  
  156. RWVV_T-=HK
  157. U$,+++J  +K+RLh +JWP/+RW+ R +KWWV.=H\6X,=H\]X6Z3ZY9.
  158. TKR_,;\VYVif you 
  159. name  t   command  procedure  DEFLINK.COM,  you  would  use  the 
  160. following   command  line  to  link  to  an  object  module  name 
  161. SYNAPSE.OBJ with the qualifiers that you specified in the  command 
  162. procedure:
  163. .5RBb
  164. eu
  165. rU+*
  166. UTT*Jj*H(H+ +Q  example shows a command procedure named PARM.COM  that 
  167. contains parameters:
  168. CHAP1, CHAP2
  169.  
  170. To execute the procedure, use it in a command string in place of a 
  171. paramePIr5ij2TdT*)(-J+
  172. +V(+C!#!#!#!#!(>4HZ4y +FW$ V->$.-}HX9y,+ +W
  173. UV$.*+ RWT? Z R<$c!W+)H(H(H(H(H(H(H(HjuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuU`h        $$HH             bI$    *)nV*-]YLN - Advanced Telecommunications Inc.
  174. \_______________/ _________/_muuuuuuuuuuuuuuuuuu    RH(Hx
  175.  
  176. Downloaded from Just Say Yes. 2 lines, More than 500 files online!
  177.          Full access on first call. 415-922-2008 CASFA 
  178.  
  179.  
  180.  
  181.  
  182.   Another file downloaded from:   
  183.  
  184.          !
  185.         -$-             & the Temple of the Screaming Electron
  186.          !    *                    Walnut Creek, CA
  187.    +    /^   |
  188.    !    | |//^  _^_     2400/1200/300 baud  (415) 935-5845  
  189.   /^  /   @ |  /_-_            Jeff Hunter, Sysop
  190.   |@ _| @     @|- - -|                                     
  191.   |  | |    /^ |  _  |                  - - - - - - - - - * 
  192.   |___/____|_|_|_(_)_|       Aaaaaeeeeeeeeeeeeeeeeee!   /   
  193.  
  194.        Specializing in conversations, E-Mail, obscure information,
  195.    entertainment, the arts, politics, futurism, thoughtful discussion, 
  196.           insane speculation, and wild rumours. An ALL-TEXT BBS.
  197.  
  198.                          "Raw data for raw minds." 
  199.  
  200.