[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] [RaQ3] Using chown in Perl scripts
- Subject: Re: [cobalt-users] [RaQ3] Using chown in Perl scripts
- From: "Robert Fitzpatrick" <robert@xxxxxxxxxxx>
- Date: Sun Jan 20 22:45:01 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> CORRECT: this small cut from my "perl" book:
>
> chown(LIST)
> chown LIST
> This function changes the owner (and group) of a list of files.
The first
> two elements of the list MUST be the NUMERICAL uid and gid in that
order.....
> ......
Perfect, thank you:) My Perl online reference did not extend into the
NUMERICAL information, I left my book at the office this weekend. The
number thing played a big factor in my failing. I had already tried to
reverse the order of the chmod and chown. Another problem that was
causing problems was my quotes around the directory name in the chown
function. I changed it to pass the directory path into a variable and
then use the variable instead without the quotes (with the uid and gid
NUMBERS, of course) and whala!
Thanks again for the feedback...
--
Robert