perldoc -f stat

Stat is a great command... 

$mode = (stat($filename))[2];
printf "Permissions are %04o\n", $mode & 07777;


On 09 Aug 2001 16:47:00 -0400, Baartmans, Hans wrote:
> Is there a module or command that returns the permissions of a file or
> directory?
> 
> Thanks,
> Hans
-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Richie Crews

Unix Administrator / Internet Integrator

Email: [EMAIL PROTECTED]

Cell: (706) 773 - 3436
Desk: (706) 634 - 3681
Fax: (706) 634 - 3831

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to