Re: Dev - startofbiz.sh changed

Posted by Si Chen-2 on
URL: http://ofbiz.116.s1.nabble.com/Dev-startofbiz-sh-changed-tp167822p167830.html

Is there a command that displays the log file like the unix tail?

Chris Howe wrote:
windows would be...

startofbiz.bat > logs\console.log

--- Si Chen [hidden email] wrote:

  
David,

It works for me when I do a:

$ startofbiz.sh

Then a
$ tail -f logs/console.log

So it does both.  This works in Linux or OS X.  As
for Windows, who knows?

Si

David E Jones wrote:
    
I guess kind of an interesting debate... In
      
development is it better to have the log spewn out
on the console or to watch in a log file when
needed...
    
For developers I'd actually like to see everything
      
glancing at the log during start up because there
are issues that creep in on occasion that could be
avoided by doing so.
    
Of course, if you don't have a good terminal to
      
run things in or a good way to watch the logs coming
from a file then that's an issue... It's actually
one reason I hate Windows and in spite of the pain I
used to use Cygwin for my terminal because it is so
much better than the Windows CMD thingy.
    
I guess if anyone has other ideas, or is bored (or
      
frustrated with whatever they're working on...) and
wants to type something that doesn't require too
much thought, I'd be interested in hearing them.
    
-David


Si Chen wrote:
  
      
David,

The advantage of running it background and piping
        
it to a log is that 
    
some window terminals don't scroll far back
        
enough.  This was a real 
    
problem with the Windows CMD terminal but also
        
happens with xterm as 
    
well.  It's OK though if you want to keep the
        
other one as the default.
    
Si

David E Jones wrote:
    
        
This was actually intentional, though if the
          
consensus is against it I can certainly change it
back. This script has 2 run lines in it with one
commented out, and before the default one was the
more production oriented one, though pretty much the
rest of OFBiz directly out of SVN is more
development oriented (including default cache
settings and so on).
    
I didn't think anyone using it for production
          
purposes would generally mind too much as it is
usually necessary to edit this script anyway for
memory and sometimes other settings as well. I may
be wrong though...
    
-David


Si Chen wrote:
  
      
          
David,

I think you may have accidentally committed a
            
change to startofbiz.sh -- 
    
the line to run it in background with a "&" is
            
commented out, and it now 
    
runs in the command line.

Si

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
    
        
            
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev


  
      
          
------------------------------------------------------------------------
  
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
    
        
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev


  
 
      
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
    

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev


  

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev