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

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