Go Back   FlashFXP Forums > >

Custom Commands Download, share, or get help creating your own.

Closed Thread
 
Thread Tools Display Modes
Old 03-21-2010, 07:13 PM   #1
pwrmngr
Junior Member
 
Join Date: Mar 2010
Posts: 2
Default CHMOD auto script

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
pwrmngr is offline  
Old 03-21-2010, 07:35 PM   #2
MxxCon
Super Duper
FlashFXP Beta Tester
 
Join Date: Oct 2001
Location: Brooklyn, NY
Posts: 3,881
Default

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.
__________________
[Sig removed by Administrator: Signature can not exceed 20GB]
MxxCon is offline  
Old 03-21-2010, 07:40 PM   #3
pwrmngr
Junior Member
 
Join Date: Mar 2010
Posts: 2
Default

Ya I know its been a week they keep saying we are fixing it.

Whats a Cron Job?

Thanx
pwrmngr is offline  
Old 03-21-2010, 08:38 PM   #4
MxxCon
Super Duper
FlashFXP Beta Tester
 
Join Date: Oct 2001
Location: Brooklyn, NY
Posts: 3,881
Default

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
__________________
[Sig removed by Administrator: Signature can not exceed 20GB]
MxxCon is offline  
Old 03-24-2010, 05:21 PM   #5
DayCuts
Senior Member
FlashFXP Beta Tester
 
Join Date: Dec 2003
Posts: 421
Default

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.
DayCuts is offline  
Old 03-25-2010, 01:08 AM   #6
MxxCon
Super Duper
FlashFXP Beta Tester
 
Join Date: Oct 2001
Location: Brooklyn, NY
Posts: 3,881
Default

ok, there's a hole in my brain and that's where i forgot command queuing
__________________
[Sig removed by Administrator: Signature can not exceed 20GB]
MxxCon is offline  
Closed Thread

Tags
chmod, log, script, server, set

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 07:17 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)