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

