Path: csiph.com!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Lars Enderin Newsgroups: comp.lang.java.programmer Subject: Re: log4j & crontab Date: Thu, 13 Sep 2012 19:56:38 +0200 Organization: albasani.net Lines: 12 Message-ID: <50521E56.1090200@telia.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.albasani.net O6m+Hk6f6mh0k4X7eGhho7V4YnbTJqHDMsV5b2IdW0pCAkRs5TjibUj7ZQcUN2rJfoGto2Ep59m1neV77Ha272QpsPPAfClkIskXd7XHvHOi5WjTc8pHGsUcN34u1GrL NNTP-Posting-Date: Thu, 13 Sep 2012 17:56:44 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="8Ik5T22XsZH122i+PdWb6lKjAgYjyPrmDvb7JzwFIwkc4wL0+IHUgLlT3EP6YNtFd5eG6/3eRf2XXBECAHbSOzCLc7h+IkGaJx3PRbqYr5SmXXxD5R+ONgJDjoANoNg7"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.0 In-Reply-To: Cancel-Lock: sha1:gLuqTGlJ9KhO0as88xflYfz5kSw= Xref: csiph.com comp.lang.java.programmer:18740 2012-09-13 15:47, daniellauzon2002@gmail.com skrev: > Le mercredi 17 novembre 2004 08:03:19 UTC-5, Vuk a écrit : >> when i implement crontab in my application his log4jjcrontab.properties overrides my log4j.properties > > Not sure if we have the same problem but my app logs nicely when I launch it myself from the command line but fails to log when I let crontab launch it. > In a crontab script you have to spell out the full path to executables, or explicitly set the value of PATH to a suitable value similar to your own PATH when logged in. -- Lars Enderin