Do what Jay said. Make your own spew function and use SpewOutputFunc to set
the current spew function to yours. You can use GetSpewOutputFunc to get the
current one, then set yours, then do whatever you need to get, then set it
back to the function that GetSpewOutputFunc returned you. I do it for
redirecting the output of rcon commands.
OldSpew = GetSpewOutputFunc();
SpewOutputFunc(rcon_spew_func);
// exec command
engine->ServerCommand(UTIL_VarArgs("%s\n", rcon_cmd));
engine->ServerExecute();
// undo redirect
SpewOutputFunc(OldSpew);
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tiago
Conceição
Sent: Wednesday, August 13, 2008 5:32 PM
To: Discussion of Half-Life Programming
Subject: Re: [hlcoders] Get/dump console output to file
like i say no acess to SSH or computer
no acess to console command line
i just want a way to doit inside a plugin, there are no funcs to dup stdout
to a file?
thanks
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders