Luk4ward Posted April 4, 2007 Posted April 4, 2007 heh, so, did u check if script was written in editor with unix line termination? Did u also check the chmods on pb/ssweb.sh ? And remote dir for you should be propably: REMOTE_DIR="./public_html/pbss/" or REMOTE_DIR="./pbss/" only if u got pbss in the main dir of your website host, thats my thougths :P Quote
SoP-Mirkox Posted July 25, 2007 Posted July 25, 2007 sorry I'm noob..... LOL can you explain (pass for pass) what i do and give me a example?? thanks in advantise. ;) Quote
Tgrable84 Posted December 1, 2007 Posted December 1, 2007 join irc Ok i have a question for everyone in here. I have my dedicated server for the game on a win32 system. What do I need to go about doing to get the same results when uploading to a ftp. I have tried all the stuff mentioned here so I'm not sure if I just don't understand it all or if I'm having a problem with it being on a win32 system. Thanks for any help in advanced. Quote
foxdie Posted December 1, 2007 Posted December 1, 2007 Ok i have a question for everyone in here. I have my dedicated server for the game on a win32 system. What do I need to go about doing to get the same results when uploading to a ftp. I have tried all the stuff mentioned here so I'm not sure if I just don't understand it all or if I'm having a problem with it being on a win32 system. Thanks for any help in advanced. I cant help you with windows Quote
Quarter Master Posted August 1, 2008 Posted August 1, 2008 is ther one of these for Windows based servers?? Quote
andr3a Posted August 2, 2008 Posted August 2, 2008 Sorry for re-opening. I am not really an expert, but I would like to automatically download the pbbans.dat file from my server to my Website. I tried to guess and edit the file, could someone tell me if it's right, and if not correct it? :rolleyes: Thanks ;) #!/bin/bash FTP_SRV="" FTP_LOGIN="" FTP_PW="" REMOTE_DIR="." FN=`echo $1 | sed -e s/"\(\\/.*\\/\)"//` BANS=`echo $1 | sed -e s/"pbbans\+[.]dat"/pbbans.dat/` ftp -np $FTP_SRV << END_SCRIPT quote USER $FTP_LOGIN quote PASS $FTP_PW binary cd $REMOTE_DIR put $1 $FN put $FULLFN_HTM $FN_HTM put $BANS pbbans.dat quit END_SCRIPT Quote
=BLACKWOLF= Posted August 2, 2008 Posted August 2, 2008 When are you executing the script? If you use it for PBSS, the appropriate line will cause it to be executed, whenever a PBSS is received. If you do it with this script, it will not. A cron job should do it thoug I'd assume. Foxdie will be the best person to check the script for you. Quote
andr3a Posted August 2, 2008 Posted August 2, 2008 When are you executing the script? If you use it for PBSS, the appropriate line will cause it to be executed, whenever a PBSS is received. If you do it with this script, it will not. A cron job should do it thoug I'd assume. Foxdie will be the best person to check the script for you. Well, I was thinking to use pb_sv_task, isn't it possible? Quote
=BLACKWOLF= Posted August 3, 2008 Posted August 3, 2008 I don't believe so, although I'm not 100% on that. Have you tried using a simple cron job? Quote
andr3a Posted August 3, 2008 Posted August 3, 2008 (edited) I don't believe so, although I'm not 100% on that. Have you tried using a simple cron job? I am not able to set cronjobs on gameserver. Though I am able to set them on webserver :) EDIT: Perhaps, isn't it possible to do the opposite (script on webserver log on ftp and grab the file)? Edited August 3, 2008 by WL - andr3a Quote
foxdie Posted August 6, 2008 Posted August 6, 2008 Yes it is possible to do it from another server. And why do you need cronjobs on the game server? Quote
andr3a Posted August 6, 2008 Posted August 6, 2008 Yes it is possible to do it from another server. And why do you need cronjobs on the game server? Well, how? I tried with that script and it says 301 - Moved Permanently - The requested page has moved to a new url :huh: Quote
evilzombie Posted August 10, 2008 Posted August 10, 2008 (edited) Trying to figure out what I'm doing wrong cause I'm getting no screens anywhere now :\ We've made a ssweb.sh #!/bin/bash FTP_SRV="[our website]" FTP_LOGIN="xxxxx" FTP_PW="xxxxxx" REMOTE_DIR="./forums/pbss/" FN=`echo $1 | sed -e s/"\(\\/.*\\/\)"//` FULLFN_HTM=`echo $1 | sed -e s/"\([.]png\)"/.htm/` FN_HTM=`echo $FULLFN_HTM | sed -e s/"\(\\/.*\\/\)"//` SVSS=`echo $1 | sed -e s/"pb[0-9]\+[.]png"/pbsvss.htm/` ftp -np $FTP_SRV << END_SCRIPT quote USER $FTP_LOGIN quote PASS $FTP_PW binary cd $REMOTE_DIR put $1 $FN put $FULLFN_HTM $FN_HTM put $SVSS pbsvss.htm quit The full path to the folder I'm attempting to upload to is /domains/[oursite]/public_html/forums/pbss Through rcon I put PB_SV_SsCmd ssweb.sh & I get PunkBuster Server: pb_sv_SsCmd = ssweb.sh PunkBuster Server: Setting pb_sv_sscmd value override [pb/eb.sh] but now screens arent showing up in server folder or on website pbbss folder What am I doing wrong? Edited August 10, 2008 by ETL - evilzombie Quote
=BLACKWOLF= Posted August 10, 2008 Posted August 10, 2008 upload that script into pb folder ( lets call it ssweb.sh and /srv/et/pb is pb_sv_homepath ).Then pb_sv_sscmd "pb/ssweb.sh ; sh /srv/et/pb/ssweb.sh" pb_sv_sspath must still be left blank. Quote
evilzombie Posted August 10, 2008 Posted August 10, 2008 pb_sv_sspath must still be left blank. Sorry I don't understand Quote
=BLACKWOLF= Posted August 10, 2008 Posted August 10, 2008 In your pbsv.cfg, there will be the following: pb_Sv_SSPath "" That must remain as above. Don't include anything between the "". -------------------------- Your pb_Sv_SScmd is also incorrect. See Foxdie's example: upload that script into pb folder ( lets call it ssweb.sh and /srv/et/pb is pb_sv_homepath ).Then pb_sv_sscmd "pb/ssweb.sh ; sh /srv/et/pb/ssweb.sh" Quote
evilzombie Posted August 10, 2008 Posted August 10, 2008 (edited) Ok I'll try that Edited August 10, 2008 by ETL - evilzombie Quote
POINTandSHOT Posted August 23, 2008 Posted August 23, 2008 the ssweb.sh must have 777 or 644 ? I have 644 and not works ! I can not change ! Thanks ! Sry for my bad english .... :huh: MFG POINTandSHOT Quote
=BLACKWOLF= Posted August 23, 2008 Posted August 23, 2008 As long as it is executable, it should work. Also, post what you have pb_sv_sscmd set to, and what the response to pb_sv_homepath is. Quote
POINTandSHOT Posted August 23, 2008 Posted August 23, 2008 As long as it is executable, it should work. Also, post what you have pb_sv_sscmd set to, and what the response to pb_sv_homepath is. 644 is not executable i can not change .... Thanks ! Quote
evilzombie Posted August 23, 2008 Posted August 23, 2008 Still haven't gotten ours to work, got frustrated & walked away from it. Decided to revisit. Should this be in my pbsv.cfg?? pb_sv_SsCmd "pb/ssweb.sh; sh /usr/local/games/et/681193/208.167.248.55:27960/pb/ssweb.sh" Quote
-=Garbage DinGo=- Posted August 26, 2008 Posted August 26, 2008 (edited) =BLACKWOLF= pointed me towards this thread as I'd asked the same question regarding pbss. I'm going to have a go at running this on my sof2 server. One question though, is the script put in the sof2/pb directory or the .sof2/pb directory? I'm guessing it's the .sof2 one. Update Surely there is a big problem here. Your webspace ftp details will be available to the company who run your game server. Edited August 26, 2008 by -=Garbage DinGo=- Quote
{GsG} TropzSP Posted December 1, 2008 Posted December 1, 2008 will this way work? PB_SV_SSCMD "</span>#!/bin/bash FTP_SRV="" FTP_LOGIN="" FTP_PW="" REMOTE_DIR="." FN=`echo $1 | sed -e s/"\(\\/.*\\/\)"//` FULLFN_HTM=`echo $1 | sed -e s/"\([.]png\)"/.htm/` FN_HTM=`echo $FULLFN_HTM | sed -e s/"\(\\/.*\\/\)"//` SVSS=`echo $1 | sed -e s/"pb[0-9]\+[.]png"/pbsvss.htm/` ftp -np $FTP_SRV << END_SCRIPT quote USER $FTP_LOGIN quote PASS $FTP_PW binary cd $REMOTE_DIR put $1 $FN put $FULLFN_HTM $FN_HTM put $SVSS pbsvss.htm quit" Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.