home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / question / 15464 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  1.6 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!torn!nott!bnrgate!bcars664!bcarh1b6!stetner
  2. From: stetner@bcarh1b6.BNR.CA (Douglas Stetner)
  3. Newsgroups: comp.unix.questions,bnr.unix
  4. Subject: Re: chmod in a ksh script
  5. Message-ID: <18474@bcars664.bnr.ca>
  6. Date: 12 Jan 93 20:30:50 GMT
  7. References: <1993Jan12.192108.14150@brtph560.bnr.ca>
  8. Sender: news@bcars664.bnr.ca
  9. Reply-To: stetner@bcarh1b6.BNR.CA (Douglas Stetner)
  10. Distribution: world
  11. Organization: Bell-Northern Research Ltd.
  12. Lines: 36
  13.  
  14. In article <1993Jan12.192108.14150@brtph560.bnr.ca>, trice@brtph330
  15. (Tony Rice P885) writes:
  16. |>I am having problems with a Korn Shell script I am writting.  The
  17. |>script ftp's files from another server and must chmod the files
  18. |>for global read access.
  19. |>
  20. |>chmod 644 $TARGET_DIR/*
  21. |>
  22. |>
  23. |>produces the following output:
  24. |>
  25. |>chmod: can't access /bnr/users/u1/trice/tmp/*
  26. |>
  27. |>
  28. |>before you ask, yes everything in the path has 700 permission.
  29. |>
  30. |>
  31. |>Forgive me if this is a faq.
  32. |>
  33. |>=======================================================================
  34. |>Tony R. Rice
  35.  
  36. Sounds like you have the '-f' flag set, in which case it is
  37. trying to (literally) chmod the file '/bnr/users/u1/trice/tmp/*' which
  38. (probably)
  39. does not exist.
  40.  
  41. Try doing a 'set +f' before the chmod statement, this turns on wildcarding.
  42.  
  43. Doug
  44.                         
  45. ------------------------------------------------------------------------
  46. ---------
  47. Douglas G. Stetner, 4Y22  |  Bell-Northern Research  | ESN 6+39+3+8396
  48.       stetner@bnr.ca      |  P.O. Box 3511, Stn. C   | (613) 763-8396  (work)
  49.  My opinions are my own.  |  Ottawa, ON, CANADA      | (613) 828-6321  (home)
  50.