home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / ultrix / 9206 < prev    next >
Encoding:
Text File  |  1993-01-07  |  2.5 KB  |  78 lines

  1. Newsgroups: comp.unix.ultrix
  2. Path: sparky!uunet!haven.umd.edu!decuac!pa.dec.com!engage.pko.dec.com!nntpd.lkg.dec.com!datum.nyo.dec.com!croton.nyo.dec.com!frank
  3. From: frank@croton.nyo.dec.com (Frank Wortner)
  4. Subject: Re: How to specify file attributes for DECnet copy?
  5. Message-ID: <1993Jan7.162520.26342@datum.nyo.dec.com>
  6. Lines: 65
  7. Sender: frank@croton (Frank Wortner)
  8. Reply-To: frank@nyo.dec.com
  9. Organization: Digital Equipment Corporation
  10. References:  <AYH0Y3E@netmbx.netmbx.de>
  11. Date: Thu, 7 Jan 1993 16:25:20 GMT
  12.  
  13.  
  14. Let me try answering this one again, since I didn't understand the questions
  15. the first time around :-(
  16.  
  17. >I have to copy on a *VMS* node a file *from* that node *to* an
  18. >Ultrix node via DECnet in order to process it later on from a PC.
  19.  
  20. OK.
  21.  
  22. >It seems to me, that COPY and none of its qualifiers will do that: the file
  23. >is created uppercase and with version number. The problem then: this file
  24. >can't be seen from a Pathworks PC.
  25.  
  26. You have to specify the target filename on the ULTRIX machine.
  27.  
  28. >The copy command looks like this:
  29. >VMS $ COPY FILE.EXT ULTRIX"ACCOUNT PASSWORD"::
  30.  
  31. Pathworks won't display the file on the PC unless the corresponding name
  32. in the ULTRIX directory is lower case and 8 or fewer chanacters before the
  33. period and 3 or fewer after.  Try:
  34.  
  35. COPY FILE.EXT ULTRIX"ACCOUNT PASSWORD"::"file.ext"
  36.  
  37. The quotes should force VMS to leave the filename alone and *not* map it
  38. into a VMS filespec.
  39.  
  40. >BTW, is there a way to give the file another protection while created
  41. >by fal (it does not work with COPY/PROTECTION). Fal does not process
  42. >.login or .profile, so setting the umask there is of no avail. Is there
  43. >a special startup script for fal (i.e. .fal)?
  44.  
  45. Peter Mayne (pjdm@chmeee.enet.dec.com) was on the right track when he said:
  46.  
  47. > ncp show object fal char
  48.  
  49. If you do this, you'll get something like this:
  50.  
  51. ncp show object fal char
  52.  
  53. Object Volatile Characteristics as of Thu Jan  7 11:04:55 EST 1993
  54.  
  55. Object = fal
  56.  
  57. Number                             = 17
  58. File                               = /usr/etc/fal
  59. Default User                       = guest
  60. Type                               = Sequenced Packet
  61. Accept                             = Deferred
  62.  
  63. You can substitute a script for /usr/etc/fal which sets the umask and then
  64. exec's the real fal program (which you've moved somewhere else).  Something
  65. like
  66.  
  67. #! /bin/sh
  68. umask 022
  69. exec /usr/etc/fal.executable
  70.  
  71. should work.  It's unsupported, so any unforseen consequences are
  72. yours to deal with.  I've done similar things in the past, though, and they
  73. have worked.
  74.  
  75.                     Frank
  76.  
  77.  
  78.