How to check file permissions from SKILL?

Discussion in 'Cadence' started by Jackson Harvey, Nov 5, 2003.

  1. 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 Harvey, Nov 5, 2003
    #1
  2. Jackson Harvey

    snmishra Guest

    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
     
    snmishra, Nov 5, 2003
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.