Well, in fact there is some kind of buffering. If you want live capture,
you need to send something to get log lines. If you don't mind real
time, simply wait for the buffer to fill (I think it is 4kb). That's why
any redirection to file works.

Mario

Sebastian wrote:

works fine for me.. try: > file.txt 2>&1

Mario Benito Ríos wrote:

Yes, it is a very annoying feature.

The only workarround I've found is sending '\n' to srcds console through
the pipe. Each time you want to receive something, you must send a '\n'.
I'm using raw C.

Mario

Alexander Schäfer wrote:

Hi guys,

I'm desperately trying to capture output with my perl script. hlds
works fine, however I think srcds doesn't like redirecting the stdout
pipes. On debian stable (3.1) and suse linux 9.1 i just cant pipe
srcds output.

For example "./srcds_i686 -game cstrike +maxplayers 16 +map de_dust -
port 27022" outputs the normal stuff to your terminal... up to "VAC
beta secure mode is activated.".

However "./srcds_i686 -game cstrike +maxplayers 16 +map de_dust -port
27022 > text.txt" will NOT pipe anything into the file text.txt and
no output to your terminal can be found. Since pipes are used for
redirecting output.. perl pipes don't work, tee doesn't work etc etc.
Screen is no option for me, is there any workaround for this bug
(maybe even in perl)?

bye mbalex
and thx for any help


_______________________________________________
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





--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.2/55 - Release Date: 7/21/2005


_______________________________________________
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