How to check file permissions from SKILL?

J

Jackson Harvey

Guest
I need a SKILL function to check file permissions. I want to know,
though, not just if the file is writable by me; I want to know if it is
writable by anyone. Is there an easy way to do this?
 
"Jackson" == Jackson Harvey <jharvey@bermai.com> writes:
Jackson> I need a SKILL function to check file permissions. I want
Jackson> to know, though, not just if the file is writable by me; I
Jackson> want to know if it is writable by anyone. Is there an easy
Jackson> way to do this?
Hi Jackson

You might try this

(sh (strcat "/bin/ls -l " fileName " | cut -d' ' -f1 | grep w"))

Satya

--
Remove XXX and YYY to get my address
 

Welcome to EDABoard.com

Sponsor

Back
Top