Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Java program running as a daemon (thanks to YAJSW, a wrapper for java).

The thing is that this java application writes several lines of console text, (simply imagine a Hello World App). If I run it from the console of course I can read those lines.

But when it runs as a daemon, where do those lines of text go?

share|improve this question
The lines of text go wherever YAJSW made them go. – Gilles Dec 23 '11 at 23:50
@Gilles you are right – Hernán Eche Dec 28 '11 at 15:15

Why dont you run the app using svscan (homepage, part of daemontools)?

If you configure correctly you'll have something like this:


And the current file is the console output.

I use svscan to run C++, Java, Groovy and linux common services.

share|improve this answer
I've solved it, but +1 thanks anyway – Hernán Eche Dec 28 '11 at 15:20
thanks for the +1 ;) – alsotoes Dec 31 '11 at 10:06
up vote 0 down vote accepted

I've found how to do it in the Yajsw help,

thanks @Gilles for the guiding

It's enough just to specify in wrapper.conf

wrapper.logfile= <path and filename >

Thanks anyway!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.