[an error occurred while processing this directive]
Forms Processor Advanced Commands
Contents   Index of Commands   Search the Forms Processor Docs   
oct Returns the octal representation of the number specified. If you are not familiar with octal, it is a number system in base 8 (0 to 7) that is used primarily in unix for file permissions; it's a quick way of specifying what value you should chmod a file to.

$output = oct(n);

Example:

# takes read permission input and returns an octal number for them; chmod value

# global permissions

if ($user_r eq "checked")

 $user = $user | 4

endif

if ($user_w eq "checked")

 $user = $user | 2

endif

if ($user_x eq "checked")

 $user = $user | 1

endif

$perm = oct($user);

format screen

The chmod value for this file should be: 70$perm
.

[an error occurred while processing this directive]