XP command line: redirecting a file to STDOUT
I want to do the opposite to everyone (laughs) I run open-erp with the command line, for example:
C:\OpenERPAllInOne\Server>openerp-server.exe --log-file=outputfile
but the problem is, with Windows, it only outputs the file.
Is it possible to redirect the file to STDOUT. For example (it doesn't work, but this is the way I see it):
C:\OpenERPAllInOne\Server>openerp-server.exe --log-file=STDOUT
and then look directly at the output on the command line.
I can't get it to work! Any idea?
Thank,
Olivier salad
source to share
If you cannot get the server to output to standard output, you can monitor the log file with < tail][1]
.
If you run:
tail -f c:\path\to\logfile.txt
in another window, you can see the contents of the file as you write it.
tail
not included with standard Windows, but you can download the free tail
Windows port here .
source to share
for windows there is a config file for OpenERP Server, for example openerp-server.conf in the directory where you installed Open ERP
like c:\Program Files\OpenERP Server\openerp-server.conf OR
C:\documents and settings\USER\OpenERP Server\oepenrp-server.conf
you need to edit that file and set the -log-file option to None or False and maybe you can also try something like this
C:\OpenERPAllInOne\Server>openerp-server.exe --log-file=False
which should work but not sure if it will work or not. !!
source to share