The underlying problem is that when you invoke something with cron you are
started in a Borne shell with 5 variables set.  When running at the command
line your .profile has been loaded.

I am assuming ksh, in your invoking script, source your .profile
. .profile
and then proceed with whatever other set-up you need.

Changing /etc/profile mean that everyone gets your classpath.

Grant Cullen
UNIX System Admin
[EMAIL PROTECTED]
416-935-6558


-----Original Message-----
From: Sajida Kalsoom [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 02, 2000 1:24
To: [EMAIL PROTECTED]
Subject: Re: crontab settings!


Hi John
  set CLASSPATH variable for  jdbc dirver in /etc/profile . your problem
will be solved
regards
sajida.
----- Original Message -----
From: John John Tobias <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 02, 2000 6:52 PM
Subject: crontab settings!


>Hi to All!
>
>I created a java application program which support the JDBC connection and
a
>shell's script to load all the environment needs of my program and at the
>same time call my program, there is no problem when I run in a command
>prompt, it works properly. But, when i used the crontab to call the script
>or the application itself, the program is encountering a
>NullPointerException and i found out that this method Class.forName(
>"com.sybase.jdbc2.jdbc.SybDriver" ) is the main problem.
>
>Does anyone can tell me what are the additional settings that i need to fix
>that problem?
>
>Pls help me....
>
>Thanks in advance,
>John
>______________________________________________________
>Get Your Private, Free Email at http://www.hotmail.com
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to