I am using multiple screens, so I should look like this;? #!/usr/bin/expect -f set timeout 1 spawn /usr/bin/screen -d -r -S <MYSCREENSESSION> match_max 100000 send -- "rcon say \"You have only one hour left\"\r" expect eof
where do I put the -r ? Med vennlig hilsen: Andreas Kang Schøyen It konsulent NovaNett IT A/S Adr: Grønland 14, 0188 Oslo E-post: [EMAIL PROTECTED] Tlf: 22170020 / Mob 96998888 Faks: 22178218 Web: www.novanett.no -----Original Message----- From: Mariusz Zieliński [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 06, 2006 5:25 PM To: [email protected] Cc: Andreas Kang Schøyen Subject: 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

