Hello all.
I am trying to run chmod (and check for failures), using PERL.
The chmod returns 1, but the permissions reported are different than the ones reported after using LINUX's chmod.
I have used perl -e to show the inconcictency.
See below:
> perl -e '$m= chmod (777 , "run.debug.2.log") ; print "$m\n";'
1
> ls -ltr run.debug.2.log
-r----x--x 1 ldagan contract 0 Nov 22 08:59 run.debug.2.log
> chmod 777 run.debug.2.log
> ls -ltr run.debug.2.log
-rwxrwxrwx 1 ldagan contract 0 Nov 22 08:59 run.debug.2.log
As can be seen, chmod 777 in PERL gives permsissions "-r----x--x", which is different than the LINUX equivalent.
Any ideas?