Rick Edwards wrote:
>
> I'm trying to change the ownership and permissions on a file but using
>
> unless (`chown root:root $working_file`) {
>   do_something
> }
>
> Throws an "illegal seek" error.  The only other alternative is to stat a
> file owned by root to get the uid etc, and then use perl's in built
> chown function to change the files ownership but this seems terribly
> long winded.
>
> Any suggestions ?

Use Perl's built-in 'chown' function.

  perldoc -f chown

HTH,

Rob



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to