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'
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