| View previous topic :: View next topic |
| Author |
Message |
stamos
Joined: 11 Nov 2010 Posts: 139
|
Posted: Apr 19, 2012 1:45 pm Post subject: DB to File / Server Disk Space Update / File to DB etc. |
|
|
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 |
|
 |
stamos
Joined: 11 Nov 2010 Posts: 139
|
Posted: Apr 20, 2012 5:43 pm Post subject: |
|
|
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 |
|
 |
nyan
Joined: 28 Oct 2010 Posts: 163
|
Posted: Apr 20, 2012 8:19 pm Post subject: |
|
|
no
$db->SelectARef("SELECT * FROM Servers WHERE srv_id = 12 AND srv_status<>'OFF' ");
I guess |
|
| Back to top |
|
 |
stamos
Joined: 11 Nov 2010 Posts: 139
|
Posted: Apr 20, 2012 9:26 pm Post subject: |
|
|
true, that should work as well.
good point! |
|
| Back to top |
|
 |
|