in reply to Re: chmod and oct
in thread chmod and oct
Than my first code was wrong, as it should be:
It is because my variable $chmod is regarded as a string and not a number, that is fails.chmod 0755, $file; # and not chmod '0755', $file;
Why doesn't a trick like this work then?
Please note that it is friday today, and this might explain my stuped questions :-)$chmod='0644'; chmod $chmod+0, $file;
---------------------------
Dr. Mark Ceulemans
Senior Consultant
IT Masters, Belgium
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: chmod and oct
by dws (Chancellor) on Dec 06, 2002 at 08:55 UTC |