Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Setting file permissions for a module built on a Windows PC

by Monk::Thomas (Friar)
on Aug 24, 2012 at 10:05 UTC ( #989473=note: print w/replies, xml ) Need Help??


in reply to Setting file permissions for a module built on a Windows PC

I googled a bit and found this little gem:

Good news: There’s a standalone tar.exe among the UnixUtils suite (gzip’s there too). And in their characteristically absurd foresight, those devs included an arg to manually set the mode of things as they’re archived.
Bad news: it’s one arg that applies to everything.

tar --create --mode=777 -f "archive.tar" "TopDir"

Technically this exercise can end here. Adding everything as 777 will make scripts work, at the cost of executable jpegs and extra glowy terminals. To do it right though, we’ll have to make multiple passes, walking the tree and only add one kind of thing at a time (dirs, files, scripts).

-- http://www.misanthropicgeek.net/?p=882p/p

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://989473]
help
Chatterbox?
shmem is going to look for problems with C++. Urgh.
choroba has worked on the Pull Request Challenge
[stevieb]: shmem I had to do that yesterday and earlier today (C++ issues). It was only fun after I figured it all out.
[stevieb]: it won't be long before I likely won't have much time to do a lot of coding...
[shmem]: stevieb: in my case, it's just light controlling via some chip from the arduino family, and a couple of MPR121 sensor chips

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2017-06-25 22:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (571 votes). Check out past polls.