RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

File sharing script

File mirror script
DB to File / Server Disk Space Update / File to DB etc.

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro
View previous topic :: View next topic  
Author Message
stamos



Joined: 11 Nov 2010
Posts: 139

PostPosted: Apr 19, 2012 1:45 pm    Post subject: DB to File / Server Disk Space Update / File to DB etc. Reply with quote

is it possible to run this script only for one server at a time and not for all servers?
this might help avoiding time outs.
Back to top
View user's profile
stamos



Joined: 11 Nov 2010
Posts: 139

PostPosted: Apr 20, 2012 5:43 pm    Post subject: Reply with quote

when I see this on index.cgi
Code:
   my $servers = $db->SelectARef("SELECT * FROM Servers WHERE srv_status<>'OFF' ");
   for my $s (@$servers)


and I change it to this:

Code:
   #my $servers = $db->SelectARef("SELECT * FROM Servers WHERE srv_status<>'OFF' ");
$servers=12;
   for my $s (@$servers)


will that work only for server 12 then?
Back to top
View user's profile
nyan



Joined: 28 Oct 2010
Posts: 163

PostPosted: Apr 20, 2012 8:19 pm    Post subject: Reply with quote

no
$db->SelectARef("SELECT * FROM Servers WHERE srv_id = 12 AND srv_status<>'OFF' ");

I guess
Back to top
View user's profile
stamos



Joined: 11 Nov 2010
Posts: 139

PostPosted: Apr 20, 2012 9:26 pm    Post subject: Reply with quote

true, that should work as well.
good point!
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro All times are GMT
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


Copyright © 2003-2013 Sibsoft Ltd