home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / misc / 16357 < prev    next >
Encoding:
Text File  |  1992-11-04  |  1.6 KB  |  49 lines

  1. Newsgroups: comp.sys.amiga.misc
  2. Path: sparky!uunet!spool.mu.edu!sgiblab!nec-gw!nec-tyo!wnoc-tyo-news!cs.titech!news
  3. From: news@cs.titech.ac.jp (Usenet News System)
  4. Subject: Re: possible to change file attributes from the shell?
  5. In-Reply-To: keith@cco.caltech.edu's message of 4 Nov 1992 20:37:07 GMT
  6. Message-ID: <Bx8IA6.2nt@cs.titech.ac.jp>
  7. Nntp-Posting-Host: csth-gw
  8. Organization: Department of Computer Science, Tokyo Institute of Technology
  9. References: <1d9c9jINNpig@gap.caltech.edu>
  10. Date: Thu, 5 Nov 1992 08:30:06 GMT
  11. Lines: 36
  12.  
  13. --text follows this line--
  14. In article <1d9c9jINNpig@gap.caltech.edu> keith@cco.caltech.edu (Keith Allan Schneider) writes:
  15. From: akiy@cs.titech.ac.jp (Akiyama Jun)
  16. Path: siva!akiy
  17.  
  18. >   Is it possible to chage the file attributes through the shell?  That is,
  19. >   can you change the read/write protection, etc., without having to use
  20. >   the workbench "info" utility?
  21. [stuff deleted]
  22. >   keith@caltech.edu
  23.  
  24. Sure.  Try using the "protect" command through the CLI to specify
  25. which bits you wish to set/delete.  For example,
  26.  
  27.     protect +rwed blah
  28.  
  29. would activate the read, write, execute, and delete bits for its
  30. protection, whereas  
  31.  
  32.     protect -rwed foo
  33.  
  34. would delete the same switches from foo. 
  35.  
  36. I'm just about sure you can use the command with wildcards like '#?',
  37. so a command like
  38.  
  39.     protect +s #?.script
  40.  
  41. should set the script bit for all files ending in ".script".
  42.  
  43. Hope that helps.
  44.  
  45.              akiy@cs.titech.ac.jp[]Amiga/Mac/IBM/NeXT/NEC/Unix-box User   
  46.  UCLA undergrad (studying abroad)[]
  47.     Tokyo Institute of Technology[]"Speech is of Time, Silence is of Eternity."
  48.       Natural Language Processing[]     ---Thomas Carlyle, _Sartor Resartus_
  49.