On Wednesday 06 December 2006 17:26, Andreas Kang Schøyen wrote:
> 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 ?


When you run server you should invoke screen with -S <MYSCREENSESSION>

Then script should look like this:

#!/usr/bin/expect -f
set timeout 1
spawn /usr/bin/screen -d -r <MYSCREENSESSION>
match_max 100000
send -- "rcon say \"You have only one hour left\"\r"
expect eof


--
mariuszZIELIŃSKI

_______________________________________________
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