Reputation: 15778
I want to do the opposite of everybody ( laugh ) I start open-erp with a command line like :
C:\OpenERPAllInOne\Server>openerp-server.exe --log-file=outputfile
but the problem is that with Windows it only does output to a file.
Is there any way to redirect a file to the STDOUT. For example (it doesn't work but this is the way I see it working) :
C:\OpenERPAllInOne\Server>openerp-server.exe --log-file=STDOUT
and then see directly the output to the command line.
I can't make it work ! Any idea ?
Thanks,
Olivier
Upvotes: 2
Views: 1351
Reputation: 14335
for windows there is a configuration file for OpenERP Server, like openerp-server.conf in the directory where you have installed the 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 paramter to None or False, and probably you might also try out something like this
C:\OpenERPAllInOne\Server>openerp-server.exe --log-file=False
that should work, but not sure whether it will work or not.!!
Upvotes: 0
Reputation: 193696
If you can't get the server to output to the standard output you could monitor the log file with [tail][1]
.
If you run:
tail -f c:\path\to\logfile.txt
in another window then you can see the contents of the file as they are written.
tail
doesn't come with Windows as standard but you can download a free port of tail
for Windows here.
Upvotes: 0
Reputation: 9154
I'm assuming that OpenERP uses getopt_long and confirms to GNU standards. If it does, then the following should work:
openerp-server --log-file=-
(a dash is usually used to represent STDOUT in GNU, Linux and UNIX programs.)
Upvotes: 0
Reputation: 14593
I'm not sure if it still works, try CON (hope it was that) as filename
Upvotes: 3
Reputation: 6478
That would be a function of the openerp-server.exe program.
If it's default output is to a file, then there isn't anything you can do about that.
Upvotes: 0