Server rentals :: NFOservers.com

Forums

All times are UTC - 8 hours



Author Message
PostPosted: Mon Jul 16, 2012 9:16 pm 
Offline
New to forums
New to forums

Joined: Wed Jul 11, 2012 10:34 pm
Posts: 6
Hi everyone!

I'm currently setting up my HLTV and webspace to talk to each other.

I followed this thread on Allied Mods to set up a cronjob to query my server and auto record an HLTV demo only if 4+ people are on the server.

Where I'm stuck now is actually moving over the files. I started another script for another cronjob to be run once a day (in the morning) to pull completed HLTV demos over to the webserver and delete the demos on the HLTV server.

Code:
cd /usr/www/user/public/demos/
wget ftp://hltvuser:hltvpass@user.hltv.nfoservers.com/tfc/*.dem -N

ftp -n -i user.hltv.nfoservers.com  << EOF
user hltvuser hltvpass
mdelete tfc/*.dem
quit
EOF


The wget part works just fine and the FTP logs in, but the FTP hangs on deleting and quits. I actually can't even ls or dir without it hanging. Using delete instead gives me a 550 Access denied message.

Any ideas? I was sent here by TimeX..


Top
 Profile  
 
PostPosted: Mon Jul 16, 2012 9:20 pm 
Online
Founder
Founder
User avatar

Joined: Thu Apr 18, 2002 11:04 pm
Posts: 9239
Location: Seattle
I don't believe that the standard FTP command-line application uses passive mode, so a different application may be needed which does.


Top
 Profile  
 
PostPosted: Mon Jul 16, 2012 9:25 pm 
Offline
New to forums
New to forums

Joined: Wed Jul 11, 2012 10:34 pm
Posts: 6
Can you suggest one I can use?


Top
 Profile  
 
PostPosted: Mon Jul 16, 2012 9:28 pm 
Online
Founder
Founder
User avatar

Joined: Thu Apr 18, 2002 11:04 pm
Posts: 9239
Location: Seattle
It looks like the default ftp client may actually support this itself. Try using the "-p" command-line option.


Top
 Profile  
 
PostPosted: Mon Jul 16, 2012 9:33 pm 
Offline
New to forums
New to forums

Joined: Wed Jul 11, 2012 10:34 pm
Posts: 6
Ah, that works perfectly. Thank you! :)


Top
 Profile  
 
PostPosted: Mon Jul 16, 2012 9:51 pm 
Online
Founder
Founder
User avatar

Joined: Thu Apr 18, 2002 11:04 pm
Posts: 9239
Location: Seattle
Awesome :)


Top
 Profile  
 
PostPosted: Tue Oct 02, 2012 8:30 pm 
Offline
New to forums
New to forums

Joined: Tue Oct 02, 2012 8:24 pm
Posts: 2
Hi.

I am currently running a VDS from NFO.

I am trying to do the same thing as Hampster. However I am stuck on the first installation which is found here.
http://forums.alliedmods.net/showthread ... ost1685431

I actually have everything installed. However I can not get it to connect to the server. I end up getting this error:

I tried updating the SourceQuery.class.php from paw's site as well. I have triple checked the server ip and port and rcon pw everything is right.

Server1 - IP:27015 - id 2
Server1 should be monitored
Could not connect to IP:27015
-----------------------------
Server2 - IP:27015 - id 3
Server2 should be monitored
Could not connect to IP:27015
-----------------------------

Does NFO block the incoming request? I have also checked the firewalls tab for the virtual server and the individual server and they are both empty/clear


Top
 Profile  
 
PostPosted: Wed Oct 03, 2012 7:19 am 
Online
Founder
Founder
User avatar

Joined: Thu Apr 18, 2002 11:04 pm
Posts: 9239
Location: Seattle
You appear to be doing something a bit different than the OP was. I'm not familiar with the script you're applying, but from that error message, you may need to enter a numerical IP instead of "IP", or to connect to port 27020 (which is the actual HLTV port; 27015 is for the game server).


Top
 Profile  
 
PostPosted: Wed Oct 03, 2012 8:55 pm 
Offline
New to forums
New to forums

Joined: Tue Oct 02, 2012 8:24 pm
Posts: 2
I have the actual IP their, I just edited out. It has a place for both hlds and hltv IP's and their ports.


Top
 Profile  
 
PostPosted: Thu Oct 04, 2012 5:27 pm 
Offline
New to forums
New to forums

Joined: Wed Jul 11, 2012 10:34 pm
Posts: 6
You should probably uncomment the debugging lines in lib/db.php to give us more information about what's going wrong. If your HLTV has a password on it, the entry in the DB has to have that too.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


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 post attachments in this forum

Search for:
It is currently Fri May 24, 2013 10:56 am
Powered by phpBB® Forum Software © phpBB Group