ionCube Logo
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


 
Post new topic   Reply to topic    ionCube Forum Index -> ionCube Package Foundry

Can IPF do recurrsive Permissions?

Author Message
epctechno



Joined: 10 May 2008
Posts: 12

PostPosted: Thu Jul 10, 2008 11:21 am    Post subject: Can IPF do recurrsive Permissions? Reply with quote

Where if I wanted to chmod everything 777 from one folder on?

chmod -R 777 themes/

Can we do this within IPF at all? If not I have a long ways to go Very Happy
Back to top
View user's profile Send private message
liaison
ionCube Support


Joined: 16 Dec 2004
Posts: 2757

PostPosted: Thu Jul 10, 2008 7:41 pm    Post subject: Reply with quote

Unfortunately not, and that is a good idea. The pfs project files are plain text though, and it would be easy to run find on your themes directory/folder to print out the names of the files, redirect that to a file, tidy it up if necessary in an editor and then insert into the correct place in the pfs file. Should take less than 5 mins. Depending on how you are with shell scripting and Unix filter commands, you could knock up a shell script to automatically do the find and update the pfs file with the file list so that you could just run the shell script if you needed to update the list in the pfs file. For fairly complex edits where you wants to replace parts of a file with text from elsewhere and perhaps make other edits I like to use emacs or xemacs in batch mode with a macro that I'd recorded and call that from a script, but you can do this kind of thing with sed, awk etc. Or use a PHP script to do it.
_________________
Community Admin
Back to top
View user's profile Send private message
epctechno



Joined: 10 May 2008
Posts: 12

PostPosted: Thu Jul 10, 2008 8:56 pm    Post subject: Reply with quote

Yeah it's what I did with sed and awk last night, I found it easier that way until you throw something in there for Windows GUI tool. Basically I would recommend you to throwing that option in there let's say:

themes/* = Would mean all of themes/ and below will be recurrsively chmod to whatever value the user inputs for permissions.

However I'm loving this tool already for what I have done on a new venture/project.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ionCube Forum Index -> ionCube Package Foundry All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum