home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / vmsnet / misc / 786 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  19.3 KB

  1. Xref: sparky vmsnet.misc:786 comp.os.vms:14400 news.answers:2703
  2. Path: sparky!uunet!dmc.com!munroe
  3. Newsgroups: vmsnet.misc,comp.os.vms,news.answers
  4. Subject: Info-VAX: "Basic" Common Questions
  5. Message-ID: <info-vax-2.19920901.093133@dmc.com>
  6. From: munroe@dmc.com
  7. Date: 1 Sep 92 09:32:08 EDT
  8. Followup-To: vmsnet.misc
  9. Expires: 13 Oct 92 00:00:00 GMT
  10. References: <info-vax-1.19920901.093133@dmc.com>
  11. Organization: Doyle, Munroe Consultants, Inc., Hudson, Ma. 01749, USA
  12. Approved: munroe@dmc.com
  13. Supersedes: <info-vax-2.19920901.093022@dmc.com>
  14. Lines: 428
  15.  
  16. Archive-name:   info-vax/part02
  17. Last-modified:  1992/08/02
  18.  
  19. [Changes since last posting: Change the title of the FAQs.  Add pointer to the
  20. new how to find faq.]
  21.  
  22.            The Info-VAX Monthly Posting
  23.            ----------------------------
  24.            PART 2 -- Beginner "Common Questions".
  25.            (Coordinated by Dick Munroe, written by many others)
  26.  
  27. (Part 1 is an introduction to Info-VAX.  Part 3 is Advanced Common Questions.
  28. Part 4 is about how to find software.)
  29.  
  30. Save this message for future reference!
  31.  
  32. Table of Contents:
  33.  
  34. ,GEN   -- General beginner questions (the Top 7 quickies) updated 1989-10-03
  35.           Many, many authors
  36. ,RDT   -- Why doesn't my program work when RUN/DETATCH'ed?  added 1990-01-31
  37.           sommar@enea.se (Erland Sommarskog)
  38.           Leichter-Jerry@cs.yale.edu (Jerry Leichter)
  39. ,LIC   -- Linking and VAX C                               updated 1989-01-06
  40.           pjt@yin.cpac.washington.edu (Larry Setlow)
  41.           TAYLORT@decus.com.au (Trevor Taylor)
  42. ,TIM   -- Why does VMS time start at November 17, 1858    updated 1989-08-28
  43.           billy@vaxb.acs.unt.edu (Billy Barron & DEC)
  44. ,VAC   -- The VAX Vacuum cleaner                            added 1989-12-28
  45.           schuette@acoustics.nrl.navy.mil (Larry Schuette)
  46.       and KLENSIN@infoods.mit.edu (John C. Klensin)
  47. ,MAI   -- Mail tips                                         added 1989-09-29
  48.           CADS_COLE@GALLUA.BITNET (Kevin Cole)
  49. ,QU1   -- Disk quotas                                     updated 1989-09-02
  50.           Rollo.Ross@levels.sait.oz.au
  51. ,QU2   -- Diskquota Discrepency                           updated 1989-09-02
  52.           R602MS5U@vb.cc.cmu.edu (Marc Shannon)
  53. [There are two articles on disk quota because I couldn't decide which to use.
  54. If someone would like to edit them into one article and submit it, fine. -TAL]
  55. ,CPD   -- How to copy an entire directory structure       updated 1989-08-03
  56.           bfoss@goofy.apple.com (Brad Foss)
  57.  
  58. (the ",REQ", ",GEN", etc. are keywords.  If you search for that text
  59. (including the ",") you will be brought to the beginning of that article.)
  60.  
  61. ---------------------------------------------------------------------
  62. ,GEN
  63. General questions answered (from various sources)
  64.  
  65. 1.  Where can I get old Info-VAX messages?
  66.  
  67. The archives are held at SRI.COM (128.18.10.1), in files with obvious names
  68. like "info-vax.txt.1".  Ramon Curiel <RAY@CRVAX.SRI.COM> does the thankless
  69. job of maintaining them.  (Yea Ramon!)
  70.  
  71. In the UK, archives are accessible via a mail server.  People should
  72. send a message, with EITHER the subject field OR the message body
  73. containing HELP, to info-vax-request@Uk.Ac.Ulcc.Ncdlab (addresses in the
  74. UK are the opposite way round from the rest of the worlds ...  sigh...)
  75. The server will tell you what to do.
  76.  
  77. Two years worth of Info-VAX messages are stored at VTVM2 which is a
  78. Bitnet redistribution point.  If you have an account there, it is best
  79. to use the database searcher.  Otherwise send the commands to
  80. LISTSERV@VTVM2 using TELL (on an IBM system) or SEND (on a VMS system)
  81. or "netwrite" (on a Unix system with the UREP software).  Send HELP
  82. and INFO commands to get started.  A sample command is something like:
  83. "$ SEND LISTSERV@VTVM2 SEND INFO-VAX LOG8901B" which will get you some
  84. of the messages from Jan 1989.  You can also use INDEX to get a list
  85. of the Info-VAX files archived.
  86.  
  87. [Any more places?  Please tell me!  -TAL ]
  88.  
  89. 2.  How do I reset my new mail count when it gets out of sync?
  90. In other words, what do I do when it says, "You have 1 new mail
  91. message" but I really don't?
  92.  
  93. Simple: Send yourself a mail message OR have someone else mail you a
  94. message.  If you are in MAIL, exit and re-enter mail.  At the MAIL>
  95. prompt, type READ/NEW until it tells you that there are no new
  96. messages.  Then enter READ/NEW one more time.  Everything is fixed.
  97.  
  98. 3.  What is the plural of VAX?
  99.  
  100. VAXen, VAXln, VAXlen, VAXs, VAXes and just about everything else you can
  101. imagine.  It's been discussed on the net many times and there has never been
  102. a conclusion.  Therefore, you may call it anything you want.
  103.  
  104. It has been pointed out that officially DEC and its lawyers consider VAX an
  105. adjective. This is required by trademark law, since you apparently can't
  106. trademark a noun. Thus the "correct" plural is VAX systems or VAX
  107. processors. There is no such thing as a VAX! :-)
  108.  
  109. 4.  Where do I get VI, Kermit, (X,Y,Z)Modem, UUCP, ANU news, GNU software,
  110. LZW/Compress/Decompress ?
  111.  
  112. See the monthly "Info-VAX: How to find software" posting.
  113.  
  114. 5.  What's DECUS?
  115.  
  116. There is a separate monthly posting about DECUS.  Look for it.
  117.  
  118. 6.   What do you do about "undeliverable mail" messages that bounce back
  119. to you from various sites when you post a message to Info-VAX?
  120.      
  121. If the reason is "MTA congestion" just delete them.  If the reason is a bad
  122. address, contact the postmaster at the destination site, suggesting that he
  123. request that the addressee be removed from the Info-VAX mailing list.
  124.  
  125. 7.  How can I submit a correction or addition to this monthly posting?
  126.  
  127. Check out the signature for addresses.  Additions are always welcome,
  128. corrections are prefered to be in VMS DIFF format if they are specific.
  129. Unix DIFF format isn't as human-readable and almost never matches up with
  130. the text I have stored here.
  131.  
  132. ---------------------------------------------------------------------
  133. ,RDT
  134. Date: Tue, 2 Jan 90 22:53:30 +0100
  135. >From: "Erland Sommarskog" <sommar@enea.se>
  136. Subject: Why doesn't my program work when RUN/DETATCH'ed?
  137.  
  138.      A question that seem to be fairly common goes like this:  "We
  139. have program that runs as a detached process and tries to create a
  140. subprocess with LIB$Spawn but always fail.  When we run the program
  141. in the debugger everything works OK."
  142.  
  143.      The answer to this one is when you run a program in a detached
  144. process there is no command line interpreter (CLI) - e.g. DCL - and
  145. since LIB$Spawn is a callback to the CLI it can't but fail.  The same
  146. applies to other callback routines like LIB$Set_logical and LIB$Set_symbol.
  147.  
  148. The solution is simple.  Instead of starting the program
  149. with RUN/DETACH Prog you should do:
  150.  
  151.         RUN/DETACH SYS$SYSTEM:LOGINOUT/INPUT=PROG.COM
  152. where PROG.COM contains the line RUN PROG.
  153.  
  154. >From: Leichter-Jerry@cs.yale.edu
  155. Date: Wed, 31 Jan 90 12:51 EST
  156.  
  157. [What Erland said is] basically correct, but there is one tricky thing
  158. that it's important to watch out for:  The names you use for /INPUT and
  159. /OUTPUT and /ERROR on RUN/DET (you would normally define all three so
  160. that you could see what happened) are passed to the created process
  161. UNTRANSLATED.  The new process will use them to define its values of
  162. SYS$INPUT, SYS$OUTPUT, and SYS$ERROR.  At the point that the new
  163. process does that, the names must be valid.  Hence, the only logical
  164. names you can use are those known system-wide.
  165.  
  166. You can use $CREPRC in place of LIB$SPAWN if you don't need LIB$SPAWN's
  167. ability to pass logical names and such.
  168.                             -- Jerry
  169.  
  170. ---------------------------------------------------------------------
  171. ,LIC
  172. Subject: Linking and VAX C
  173. >From: Larry Setlow <pjt@yin.cpac.washington.edu>
  174. Date: Fri, 8 Sep 89 10:35:48 -0700
  175.  
  176. A recent posting (maybe you saw it) reminds me of another
  177. frequently-asked question:  "How come we have to have the vaxcrtl
  178. explicitly added to the LINK command?"
  179.  
  180. I'm not sure I know the whole answer, other than "the C library's
  181. names are too likely to conflict with user-named routines, so we can't
  182. do it automatically without pissing a lot of people off, and we don't
  183. like C very much, anyway, so nyah." but I know it's been covered a few
  184. times before.
  185.  
  186. Larry
  187.  
  188. [ Note from the editor:  Trevor Taylor <TAYLORT@decus.com.au> has
  189. pointed out some other information which encouraged me to write this: ]
  190.  
  191. If you explicitly link with that library you'll get an old library.
  192. It's better to link to the sharable library, then you'll aways get the
  193. newest library.
  194.  
  195. This is not documented in the HELP file (try HELP CC LINK for the old
  196. method), just the VAX C manual that I have.  The manual doesn't mention
  197. the dangers of the first method but does mention that using the
  198. sharable library saves disk space and makes your program load faster.
  199. One program I use was 154 blocks, with the shareable library it is 5 blocks.
  200.  
  201. You must use the shareable image if you want to have the most
  202. up-to-date library.  The only way is to use an options file.  Create
  203. a file called VAXC.OPT containing the line:
  204.  
  205.     SYS$LIBRARY:VAXCRTL/SHARE
  206.  
  207. Then link as follows:
  208.  
  209.     $ LINK myprog,VAXC/OPT
  210.  
  211. ---------------------------------------------------------------------
  212. ,TIM
  213. [ DEC wrote it, Billy Barron <billy@vaxb.acs.unt.edu> submitted it, I edited
  214. it down (it included a complete history of time telling and calendars) -TAL ]
  215.  
  216. COMPONENT:  SYSTEM TIME                  OP/SYS:     VMS, Version 4.n
  217.  
  218. LAST TECHNICAL REVIEW:  06-APR-1988
  219.  
  220. SOURCE:   Customer Support Center/Colorado Springs
  221.  
  222. QUESTION: Why is Wednesday, November 17, 1858 the base time for VAX/VMS?
  223.  
  224. ANSWER:   November 17, 1858 is the base of the Modified Julian Day system.
  225.  
  226. The Modified Julian Day was adopted by the Smithsonian Astrophysical Obser-
  227. vatory (SAO) in 1957 for satellite tracking.
  228.  
  229. Eighteen bits would allow the Modified Julian Day (the SAO day) to grow as
  230. large as 262,143 ((2 ** 18) - 1).  From Nov.  17, 1858, this allowed for
  231. seven centuries.  Using only 17 bits, the date could possibly grow only as
  232. large as 131,071, but this still covers 3 centuries, as well as leaving the
  233. possibility of representing negative time.  The year 1858 preceded the
  234. oldest star catalog in use at SAO, which also avoided having to use negative
  235. time in any of the satellite tracking calculations.
  236.  
  237. This base time of Nov.  17, 1858 has since been used by TOPS-10, TOPS-20,
  238. and VAX/VMS.  Given this base date, the 100 nanosecond granularity
  239. implemented within VAX/VMS, and the 63-bit absolute time representation (the
  240. sign bit must be clear), VMS should have no trouble with time until:
  241.      
  242.    31-JUL-31086 02:48:05.47
  243.      
  244. At this time, all clocks and time-keeping operations within VMS will
  245. suddenly stop, as system time values go negative.
  246.      
  247. Note that all time display and manipulation routines within VMS allow
  248. for only 4 digits within the 'YEAR' field.  We expect this to be corrected
  249. in a future release of VAX/VMS sometime prior to 31-DEC-9999.
  250.  
  251. ---------------------------------------------------------------------
  252. ,VAC
  253. Date: 26 Dec 89 09:49:00 EDT
  254. >From: "Larry Schuette" <schuette@acoustics.nrl.navy.mil>
  255. Subject: VAX vacuum
  256.  
  257.     The VAX vacuum has been available in the U.K. long before DEC
  258. ever thought of building a 32bit processor.  When DEC did a trademark search
  259. they only checked the U.S. (or at least not the U.K).  Much to their chagrin,
  260. DEC discovered (too late) that VAX was already a licensed trademark in the U.K.
  261. A deal was struck, and because the products are not similar, life goes on.
  262.     However, DEC would be in trouble should the vacuum cleaner company
  263. decide to make "computers that suck" as well.
  264.     The best part of this story is that, every few years, a new eager 
  265. Digital lawyer will "discover" that some British company has "stolen" the 
  266. VAX trademark.  Typically, in an effort to impress the boss, they will fire
  267. off letters threatening legal action unless some license (read money) is sent
  268. DEC's way.  The lawyer is then shot down in flames when the same standard form
  269. letter is sent from the U.K.
  270.  
  271. Larry
  272.  
  273. [ Thanks, Larry.  I also got a note from John C.
  274. Klensin <KLENSIN@infoods.mit.edu> on Thu, 28 Dec 1989 asking:
  275.  
  276. >     If there is really any interest in this, the term apparently also
  277. >  means something (non-computer) in Sweden.  When I was last there,
  278. >  I saw "VAX" plastered in large letters on the outside of several
  279. >  buildings out in the sticks along highways.  I never got around to
  280. >  asking what they were associated with, but the buildings tended to
  281. >  be surrounded by heavy machinery, of the road-grading variety.
  282. >    I can pursue this if you like, otherwise will leave well enough
  283. >  alone.
  284. >     John Klensin
  285. >     Klensin@INFOODS.MIT.EDU
  286.  
  287. [ Ok Info-VAXers, any answers?  Them to me.  -TAL ]
  288.  
  289. ---------------------------------------------------------------------
  290. ,MAI
  291. >From: "Kevin Cole at Gallaudet U. Washington DC" <CADS_COLE@GALLUA.BITNET>
  292. Subject: Mail tips
  293.  
  294. [Some of these symbols may conflict with those in the ,SIGS posting, but the
  295. information is still good.  -TAL]
  296.  
  297. To tell MAIL to use an editor, include the following line in your LOGIN.COM:
  298.      
  299.         $ MAIL  :== MAIL/EDIT=(SEND,REPLY=EXTRACT,FORWARD)
  300.      
  301. (Remove the "=EXTRACT" from the above line if you do not want the text from
  302. old messages to be included in replies and forwarded messages.)  MAIL will
  303. default to CALLABLE_EDT as it's choice of editor.  If you would prefer to use
  304. EVE/TPU, put the folllowing in your LOGIN.COM as well:
  305.      
  306.         $ DEFINE/NOLOG MAIL$EDIT        CALLABLE_TPU
  307.      
  308. Another option is to have MAIL spawn a seperate process for editing.  You might
  309. wish to do this if you have a COM file which you want executed every time you
  310. use MAIL.  For example, I have one which turns off broadcasts before starting
  311. the editor so that I do not get interrupted while sending mail.  In that case,
  312. just define the logical MAIL$EDIT to point to your COM file instead of a
  313. callable editor.  Like so:
  314.      
  315.         $ DEFINE/NOLOG MAIL$EDIT        SYS$LOGIN:MAILEDIT.COM
  316.      
  317. Finally, if you wish to redefine the numeric keypad functions while within mail
  318. you can create a file (say, for example MAIL.INI) which contains the new
  319. definitions:
  320.      
  321.         DEFINE/KEY PF2                "SHOW KEY/ALL"/TERMINATE
  322.         DEFINE/KEY PF2/IF_STATE=GOLD  "SHOW KEY/ALL/STATE=GOLD"/TERMINATE
  323.         DEFINE/KEY PF3                "EXTRACT"/TERMINATE
  324.         DEFINE/KEY PF4                "IN%"""INFO-VAX@KL.SRI.COM""""/TERMINATE
  325.         DEFINE/KEY PERIOD             "DELETE"/TERMINATE
  326.         DEFINE/KEY ENTER              ""/TERMINATE
  327.      
  328. And add a line in your LOGIN.COM which points the logical MAIL$INIT at the file
  329.      
  330.         $ DEFINE/NOLOG MAIL$INIT        SYS$LOGIN:MAIL.INI
  331.  
  332. ---------------------------------------------------------------------
  333. ,QU1
  334. >From: Rollo.Ross@levels.sait.oz.au
  335. Subject: Diskquotas
  336. Date: Sat, 2 Sep 89 22:52 +0930
  337.  
  338.          Users often complain that their disk usage as shown by SHOW QUOTA
  339. doesn't match the total size of their files. Here are some reasons why this
  340. happens:
  341.  
  342. 1) Every file consists of at least one 1-block header and some number of
  343. clusters, which are usually 3 blocks long. You may have only 1 block of
  344. data, but you have removed 4 blocks from the space available to others, and
  345. your quota shows 4 blocks gone. To see the effect of this, use
  346.         $ DIR [...]/SIZE=ALL/GRAND
  347. The "SIZE=ALL" shows both the space used and the number of blocks allocated
  348. to the file. It does not show the 1 block header for each file, but you can
  349. see how much this adds up to by looking at the count of files shown. So, if
  350. you add together the LARGER of the two sizes shown in the grand total given by
  351. the command above, and the total number of files, you have a better idea of
  352. the total number of blocks allocated to you.
  353.  
  354. 2) You may have files owned by you but stored in other directories. Your
  355. own top-level directory is an example - it is is a xxxxx.DIR file stored in
  356. the directory "above" where you log in. You can check the size of that file
  357. using  the command DIR/SIZE=ALL/BY [-]
  358.  
  359. 3) The quota file is sometimes inaccurate. For example, it may not get
  360. updated if the system crashes just after you increase or decrease your
  361. usage. Bugs in VMS on a cluster also cause the quota file to drift out of
  362. touch with reality.  Your system manager may need to do some disk maintenance
  363. (ANALYZE/DISK/REPAIR dev) to fix this problem.  Check with him/her to see
  364. if this is the case.
  365.  
  366.         So, your problem is probably partly misunderstanding of how your
  367. disk  quota works (items 1 and 2 above), possibly confused by a bug in the
  368. system (item 3).
  369.  
  370. Rollo Ross, Network Manager
  371. Comp Centre,  Sth Aust Institute of Technology, The Levels, SA 5095, Australia
  372. Voice: +61 8 343 3158                 Old way:  Rollo.Ross@levels.sait.oz{.au}
  373. Fax: 349 6939      DTE 505282622004       Standard way: Rollo.Ross@sait.edu.au
  374.  
  375. ---------------------------------------------------------------------
  376. ,QU2
  377. Subject: Diskquota Discrepency
  378. >From: Marc Shannon <R602MS5U@vb.cc.cmu.edu>
  379. Date: Sat,  2 Sep 89 16:35:58
  380.      
  381.      The SHOW QUOTA returns the number of blocks you have allocated over
  382. the entire disk.  Presuming that all of your files are in your directory
  383. tree, use the DIRECTORY/SIZE=ALLOC/GRAND [...] command (from your home
  384. directory) to see just how many blocks you are using.
  385.  
  386.      Note the "/SIZE=ALLOC" qualifier; this has DIRECTORY report the
  387. number of blocks which each file is *allocated*, not just in actual use.
  388. (Most systems have a "cluster-size" of 3 which means that every file
  389. must take up a multiple of 3 blocks, so even files with one line in them
  390. take up 3 blocks.)
  391.  
  392.      Okay, now you're getting close, but VMS still charges you a bit
  393. more.  For every file you own, you are also charged 1 block so that VMS
  394. can store information in the INDEXF.SYS file on your disk about how to
  395. find your file.  So, take your total number of blocks and add the number
  396. of files and directories found in your directory tree.
  397.  
  398.        Now you should be almost at the number reached by SHOW QUOTA.
  399. Don't forget your main directory.  Use DIR/SIZE=ALLOC [-]username.DIR to
  400. see how large your main directory file is and add that (plus 1 for its
  401. INDEXF entry) to your total.
  402.      
  403.        This final total should be what SHOW QUOTA returns.
  404.      
  405. --Marc
  406.  
  407. ---------------------------------------------------------------------
  408. ,CPDIR
  409. >From: bfoss@goofy.apple.com (Brad Foss)
  410. Subject: Copy-Directory to Remote Host
  411. Organization: Network Innovations
  412. Lines: 26
  413.  
  414. >    Does anyone know why DECNET doesn't support the copying of directories
  415. > with unknown sub-directory structure?  Right now, to copy a directory
  416. > between 2 vaxes I must login to the destination host, create all the
  417. > sub-directories required in the destiation directory and use individual
  418. > copy commands to pull the files from each source host sub-directory into
  419. > the destination directory.
  420.  
  421. I've had occasion to move directory structures, even whole disks to a remote
  422. node.  The only way I've succeeded at it is to use BACKUP to create a
  423. saveset on the remote host, then log in to the remote host and backup
  424. (restore) the saveset to the desired disk.  Like this;
  425.  
  426.     (at local host)
  427. $ BACKUP/LOG DISK:[DIR...]*.*;* REMOTE::DISK:[DIR]SAVESET.BCK/SAVE
  428.  
  429. ( at remote host)
  430. $ BACKUP/LOG DISK:[DIR]SAVESET.BCK/SAVE DISK:[*...]
  431.  
  432. You said any help would be appreciated, and this sure beats having to create
  433. directories and use COPY.  BACKUP will create the directories as needed.  I
  434. expect others will suggest that you create the saveset on the local host,
  435. then DECnet it to the remote host.  It seems to run a little quicker that
  436. way.
  437. --
  438. Dick Munroe                Internet: munroe@dmc.com
  439. Doyle Munroe Consultants, Inc.        UUCP: ...uunet!thehulk!munroe
  440. 267 Cox St.                Office: (508) 568-1618
  441. Hudson, Ma. USA                FAX: (508) 562-1133
  442.  
  443. GET CONNECTED!!! Send mail to info@dmc.com to find out about DMConnection.
  444.