View Full Version : CHMOD auto script
pwrmngr
03-21-2010, 07:13 PM
Hi folks new here so bare with me.
1. I have a domain hoster that has changed to a new server and I have to log into my www every 2 hours to change the modes so my few websites can be displayed.
2. I am out of the country now so I am unable to do this manually so Is there a script or something I can set so while I am away I can have it log into the server and set the CHMOD to
Owner r/w/e
Group r/e
Public r/e
Apply changes to all sub folders and files?
Thanx Huge :)
MxxCon
03-21-2010, 07:35 PM
you can't do that in flashfxp.
but you should be able to create a cron job on your server to do this.
or better yet make your web host fix whatever is causing permissions to get reset. :confused:
pwrmngr
03-21-2010, 07:40 PM
Ya I know its been a week :( they keep saying we are fixing it. :(
Whats a Cron Job?
Thanx
MxxCon
03-21-2010, 08:38 PM
cron job is a scheduled process that runs on a server every so often and does what you tell it to do.
http://en.wikipedia.org/wiki/Cron
virtually every single hosting service offer some sort of cron capability. either you set it up yourself or through whatever facility hosting company provides you or you ask them to set it up for you.
if you'll read url above you'll see that hourly cron would look like
0 * * * * chmod 755 -R /path/to/your/files
DayCuts
03-24-2010, 05:21 PM
This is definately a major issue that your webhost provider should have fixed much more quickly than they have, infact they are clearly doing something to the filetree that they should not be touching in the first place.
As for automating this with FlashFXP, i think MxxCon isn't quite accurate saying that it can not be done as this depends entirely on the webhost itself. FlashFXP now supports command queueing, so if you can log into the webhost via ftp/sftp and issue the commands manually (raw command), then you can absolutely do it automatically as well. Create a .fqf file containing the commands you need to send, then create a windows shedule to launch FlashFXP (using its command line switches to auto log in and run the .fqf file) every X period of time and you should be set.
MxxCon
03-25-2010, 01:08 AM
ok, there's a hole in my brain and that's where i forgot command queuing :D
vBulletin® v3.8.11 Alpha 3, Copyright ©2000-2024, vBulletin Solutions, Inc.