in reply to simple chmod
chmod $mod, $file or die "Couldn't chmod $file";
Then you can check if you have enough permissions to change attributes of the file. If you want to incorporate this checks into your program, then read the "perldoc -f -X".
HTH.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: simple chmod (better error messages)
by Aristotle (Chancellor) on Dec 26, 2003 at 04:55 UTC | |
by TVSET (Chaplain) on Dec 26, 2003 at 08:06 UTC |