User Tools

Site Tools


anatomy_of_your_login-dot-com_script

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
anatomy_of_your_login-dot-com_script [2018/11/21 21:18] – WIP lrickeranatomy_of_your_login-dot-com_script [2018/11/21 21:27] – final tweaks lricker
Line 82: Line 82:
  
   * Line 16 -- Similar to Line 9 above, but here only a few commands (if any) are used to define or enhance your process environment for batch jobs.  Minimally used (by most folks), but useful for some specific things.   * Line 16 -- Similar to Line 9 above, but here only a few commands (if any) are used to define or enhance your process environment for batch jobs.  Minimally used (by most folks), but useful for some specific things.
 +
 +  * Line 17 -- A comment which asks a reasonable question:  Why //don't// we do a ''SET TERMINAL'' command in the ''BATCH'' stanza?  If you try it, you'll see why (and don't forget to take that test command out of your ''LOGIN.COM'' when you've figured this out!).
  
   * Line 24 -- Similar to Lines 9 and 16 above, but this comment is //rarely// replaced, as network and detached process environments are usually self-defining, and don't need much from ''LOGIN.COM''.   * Line 24 -- Similar to Lines 9 and 16 above, but this comment is //rarely// replaced, as network and detached process environments are usually self-defining, and don't need much from ''LOGIN.COM''.
Line 103: Line 105:
 ==== First Enhancement to LOGIN Script ==== ==== First Enhancement to LOGIN Script ====
  
-Here's a reasonable first pass which extends the template ''LOGIN.COM'' file, possibly suitable for an "ordinary, normal user" of VMS:+Here's a possible first pass which extends the template ''LOGIN.COM'' file, maybe suitable for an "ordinary, normal user" of VMS:
  
 <code> <code>
Line 152: Line 154:
  
 The comments "! ***" mark the lines where are added to replace ''INTERACTIVE'' stanza Line 9 in the original template/skeleton, plus a line added to the ''BATCH'' stanza to make re-submits easier. The comments "! ***" mark the lines where are added to replace ''INTERACTIVE'' stanza Line 9 in the original template/skeleton, plus a line added to the ''BATCH'' stanza to make re-submits easier.
 +
 +Note that these enhancement lines were easy to add right into the appropriate ''INTERACTIVE'' or ''BATCH'' stanza, and didn't take any complicated ''IF/THEN/ELSE'' logic to make things work right.  It's always best to keep things simple...
  
 ==== Enhancements for a Power User ==== ==== Enhancements for a Power User ====
Line 197: Line 201:
 $ pwd      == "SHOW DEFAULT" $ pwd      == "SHOW DEFAULT"
 $ cls      == "TYPE /PAGE=CLEAR_SCREEN NLA0:" $ cls      == "TYPE /PAGE=CLEAR_SCREEN NLA0:"
-$ !           See also [...BEGINNER]ANSISEQ.COM for a better approach to clr-screen 
 $ cp       == "COPY" $ cp       == "COPY"
 $ rm       == "DELETE" $ rm       == "DELETE"
Line 248: Line 251:
 </code> </code>
  
-This includes a DCL subroutine, labelled CreDir (for "create directory") at the end of this enhanced script, to test for user's home directory subdirectories, and create them plus a suitable logical name if they don't already exist.+This includes a DCL subroutine, labelled ''CreDir'' (for "create directory") at the end of this script, to test for user's home directory subdirectories, and create them plus a suitable logical name if they don't already exist.
  
 ==== Sys-Admin's LOGIN script ==== ==== Sys-Admin's LOGIN script ====
Line 383: Line 386:
 This final sample just adds more command aliases suitable for a system manager's needs. This final sample just adds more command aliases suitable for a system manager's needs.
  
-Hopefully, these ideas will help you with your own ''LOGIN.COM'' file. +Hopefully, these samples will give you some good ideas for your own ''LOGIN.COM'' file.
  
anatomy_of_your_login-dot-com_script.txt · Last modified: 2018/11/21 21:54 by lricker

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki