Jump to content

PB ET Linux Uploading SS's to website


ES Secret Squirrel

Recommended Posts

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

Link to comment
Share on other sites

  • 3 months later...
  • Replies 53
  • Created
  • Last Reply

Top Posters In This Topic

  • 4 months later...

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • 8 months later...

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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 by WL - andr3a
Link to comment
Share on other sites

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:

Link to comment
Share on other sites

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 by ETL - evilzombie
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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"

Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
Share on other sites

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 !

Link to comment
Share on other sites

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"

Link to comment
Share on other sites

=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 by -=Garbage DinGo=-
Link to comment
Share on other sites

  • 3 months later...

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"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.