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