Thank you for your response, Michael.

nc works flawlessly, but I failed at making the two scripts together.

Is there a way to do such (pararelly outputting NC while getting user input)
in Bash. I don't know python very well. I don't want to ask you to do the
code for me, but can you help me with some google keywords to get this
rolling?

I appreciate your help with grate owe.
Whisperity.

2011/9/24 Michael Ziegler <[email protected]>

> Hi,
>
> On 23.09.2011 22:21, Richárd Szalai wrote:
> > Then, the script output something like this into the terminal:
> >       Console: Hello.
> >       L 09/23/2011 - 22:10:47: "Console<0><Console><Console>" say
> "Hello."
> >
> > And after, it terminates. My point being, it should not terminate after,
> > rather keeping alive to receive messages which are by default, printed
> into
> > the server exe.
>
> The closest thing you can get would be binding on a port and then using
> logaddress_add to get the log from the server.
>
> For example, using netcat to bind to a port, and then issuing the
> logaddress_add command over rcon/ssh:
> > gatekeeper:~# nc -u -l -p 31337
> > ����RL 09/24/2011 - 11:46:35: "Console<0><Console><Console>" say "derp"
> > ����RL 09/24/2011 - 11:46:49: "Svedrin<10><STEAM_0:1:442617><>"
> connected, address "???.???.???.???:27005"
> > ����RL 09/24/2011 - 11:46:50: "Svedrin<10><STEAM_0:1:442617><>" STEAM
> USERID validated
> > ����RL 09/24/2011 - 11:47:18: "Svedrin<10><STEAM_0:1:442617><>" entered
> the game
> > ����RL 09/24/2011 - 11:47:20: "Svedrin<10><STEAM_0:1:442617><Unassigned>"
> triggered "clantag" (value "")
> > ����RL 09/24/2011 - 11:47:20: "Svedrin<10><STEAM_0:1:442617><Unassigned>"
> triggered "clantag" (value "<(°_°<)")
> > ����RL 09/24/2011 - 11:48:02: "Console<0><Console><Console>" say "derp"
> > ����RL 09/24/2011 - 11:49:10: "Svedrin<10><STEAM_0:1:442617><Unassigned>"
> joined team "TERRORIST"
> > ����RL 09/24/2011 - 11:49:11: "Svedrin<10><STEAM_0:1:442617><TERRORIST>"
> triggered "Got_The_Bomb"
> > ����RL 09/24/2011 - 11:49:30: "Svedrin<10><STEAM_0:1:442617><TERRORIST>"
> say "herpic derpson"
>
> Building a script that does that, along with offering you an rcon shell,
> shouldn't be too hard.
>
> Michael
>
> --
> Öffentlicher Schlüssel:         48F81543 - Michael Ziegler (Svedrin)
> Wo kämen wir denn da hin, wenn jeder nur fragte "Wo kämen wir denn
> da hin?", aber niemand ginge, um zu sehen, wohin wir kämen, wenn wir
> gingen?                                            (Autor unbekannt)
>
> _______________________________________________
> 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