Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

crontab problem

Status
Not open for further replies.

kaancho12

Technical User
Feb 22, 2005
191
I have a problem with setting the classpath for the crontab.
I needed to download and install the java-mysql driver for tron so that I could test a Java program that interacted with mysql database. When I run the program manually it works correctly but when I run the program in crontab it seems to have problem, it doesnt find the driver ..is there a fix for that.
This is the error I get :
SQLException: No suitable driver
SQLState: 08001
VendorError: 0

 
environment, environment, environment...
Try to include your entire env in your script. I'll bet it will work.
For example, try to

# env > env.txt

as the user for whom the script works.

Then copy the contents of env.txt and insert that at the top of your script.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top