Re: Changing file ownership

2003-10-20 Thread Rob Dixon
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'

Changing file ownership

2003-10-20 Thread Rick Edwards
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