Hi,
Personally, I would find all this business with screen to be
unnecessarily complicating.
There are ready made rcon classes for source (or are you using hlds?
It's not completely clear.) like for instance this one:
http://fremnet.net/article/199/source-rcon-class
Have not tested this class, so can not confirm it works or does not
work. Only one way to find out. ;-)
This would also have the benefit, that the web server and scripts can be
on a separate physical server to the game server, which would prove
challenging using the screen method.
With regards to the question about the server start-up; You will find a
simple start script on our forums, which works well for me. :)
http://www.livebythegun.com/forum/about541.html
Regards,
---
Regime
http://www.livebythegun.com/

k-mystik wrote:
> This is a multi-part message in MIME format.
> --
> [ Picked text/plain from multipart/alternative ]
> You should put a "screen -AmdS uniqueName" in front of your "./hlds_run".
> Then you should be able to use Mariusz' script if you "su" to the
> gameserver user first.
>
> Regards,
>
> --
> k-mystik! -- get2play administrator
> web: www.get2play.com
> irc: #get2play
>
>
>
>
> Parker Lewis wrote:
>
>> Hello,
>> thank you for this explanation.
>>
>> Instead of the screen-command, I'm using this one:
>>
>> cd <...>
>> su <username for this gameserver> -c "./hlds_run -game <...>" &
>>
>> Do you think this an adequate way to start the gameservers? And is there any 
>> chance to send rcon commands to them, too?
>>
>> greets,
>> pl
>>
>> ----- Ursprüngliche Mail ----
>> Von: Mariusz Zieliński <[EMAIL PROTECTED]>
>> An: [email protected]
>> CC: Andreas Kang Schøyen <[EMAIL PROTECTED]>
>> Gesendet: Mittwoch, den 6. Dezember 2006, 17:24:34 Uhr
>> Betreff: Re: [hlds_linux] Rcon commands via bash scripts
>>
>> On Wednesday 06 December 2006 16:44, Andreas Kang Schøyen wrote:
>>
>>
>>> I mean like sending rcon say "You have only one hour left"
>>> For instance. :)
>>>
>>>
>> You can always use expect. Assuming you are using screen:
>>
>> ----->8---------
>> #!/usr/bin/expect -f
>> set timeout 1
>> spawn /usr/bin/screen -d -r
>> match_max 100000
>> send -- "rcon say \"You have only one hour left\"\r"
>> expect eof
>> ------>8--------
>>
>> Create executable file containing text above and set executable bit.
>>
>>
>> With:
>>
>> set usethis [lindex $argv 0]
>> send -- "rcon kick $usethis\r"
>>
>> you may even use commandline parameters to.
>>
>>
>> One more thing; I assume that you run only one screen session and force it to
>> detach if already attached. You can always identify proper one by spawning
>> screen using -S unique_name and reattaching it -r unique_name
>>
>> --
>> mariuszZIELIŃSKI
>>
>> _______________________________________________
>> To unsubscribe, edit your list preferences, or view the list archives, 
>> please visit:
>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>>
>>
>>
>>
>>
>>
>> ___________________________________________________________
>> Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
>>
>> _______________________________________________
>> To unsubscribe, edit your list preferences, or view the list archives, 
>> please visit:
>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>>
>>
>
> --
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>



_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to