Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Unlink not deleting, Threading issue?

by taint (Chaplain)
on Jun 05, 2014 at 13:08 UTC ( [id://1088848]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Unlink not deleting, Threading issue?
in thread Unlink not deleting, Threading issue?

Greetings, dave_the_m.

The OP (pimperator) mentions Super User twice in the post.

...the user has super-user privileges...
and
After doing some reading I see that unlink() will not work if the file is open or if the user doesn't have superuser privileges, which is not the case for both.
Which is why I felt it pertinent to mention the -U flag.

--Chris

¡λɐp ʇɑəɹ⅁ ɐ əʌɐɥ puɐ ʻꜱdləɥ ꜱᴉɥʇ ədoH

  • Comment on Re^3: Unlink not deleting, Threading issue?

Replies are listed 'Best First'.
Re^4: Unlink not deleting, Threading issue?
by dave_the_m (Monsignor) on Jun 05, 2014 at 14:41 UTC
    But the -U flag is only for unlinking directories, not files, and even then it only works on a few ancient UNIX variants. Systems like Linux don't allow you unlink() directories with or without -U.

    And unless there's some documentation I missed, -U does not affect whether Windows can unlink opened files.

    Dave.

    A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1088848]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-23 09:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found