Sep 12, 2001 #1 cadbilbao Programmer Apr 9, 2001 233 ES Hi! I want to obtain a file's permission in 'NNN' mode, not in '-rwxrwxrwx' mode. I mean, I would like a script to get DIRECTLY '666' from a file, not '-rw-rw-rw'. Any help?
Hi! I want to obtain a file's permission in 'NNN' mode, not in '-rwxrwxrwx' mode. I mean, I would like a script to get DIRECTLY '666' from a file, not '-rw-rw-rw'. Any help?
Sep 14, 2001 #2 gregor weertman Programmer Sep 29, 2000 195 NL So far as I remember it was: (^ = Power) The R = 2^2 = 4 W = 2^1 = 2 X = 2^0 = 1 example: rx = 2^2 + 2^0 = 5 Then you have to make a script that does the calculation. Is this what you where asking? Regards Gregor.Weertman@mailcity.com Upvote 0 Downvote
So far as I remember it was: (^ = Power) The R = 2^2 = 4 W = 2^1 = 2 X = 2^0 = 1 example: rx = 2^2 + 2^0 = 5 Then you have to make a script that does the calculation. Is this what you where asking? Regards Gregor.Weertman@mailcity.com