The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
logging into vinayrao Shell Programming and Scripting 1 03-14-2008 11:57 AM
key logging lakshmananindia UNIX for Advanced & Expert Users 1 12-26-2007 09:00 AM
UFS logging csaunders SUN Solaris 6 10-11-2005 07:40 PM
need more logging dozy UNIX for Dummies Questions & Answers 3 11-18-2004 10:04 AM
Asking about logging in blueberry80 UNIX for Dummies Questions & Answers 1 08-29-2003 10:51 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-24-2006
piche piche is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 2
Logging in crontab

Hi,

I'm having a bit of trouble with a piece of Java code. The code works like I want it to, and if I run it from the command line, the Java logging works perfectly. When I submit the code as a cron job however, the log files are not created, even though the code again does what it's supposed to. I don't see anything on the man page for crontab, and the cron man page is full of warnings about how much info might be logged. [;0)

Do I need special permissions from my SysAdmin to get the logs to work?

Thanks,
-- piche
  #2 (permalink)  
Old 10-25-2006
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,972
How are you creating these logfiles? Be careful to specify executables with absolute paths, sometimes your cron jobs don't have the same search paths you do.
  #3 (permalink)  
Old 10-25-2006
piche piche is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 2
Well that was it. I already had a "home" envirnoment variable defined it in my script, so I added it to the java command line and used System.getProperties to read it and prepend it to the filename.

Works fine! Lasts a long time! Problem solved.

Thanks,
-- piche
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:22 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0