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 ? Regards Rick Dr Richard Edwards, Web Developer Sift, 100 Victoria Street, Bristol, BS1 6HZ Tel: 0117 9159600 Fax: 0117 9159630 http://www.sift.co.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]