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

+2


source to share


5 answers


I'm not sure if it still works, try CON (I hope it does) as the filename



+3


source


This will be a function of the openerp-server.exe program.



If this is the default output for a file, then there is nothing you can do about it.

0


source


I am assuming that OpenERP uses getopt_long and confirms the GNU standards. If so, then the following should work:

openerp-server --log-file=-

      

(A dash is commonly used to represent STDOUT in GNU, Linux, and UNIX programs.)

0


source


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
.

0


source


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. !!

0


source







All Articles