The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Running a script with cron altamaha Shell Programming and Scripting 3 06-05-2008 05:46 AM
Running a script in cron question NycUnxer UNIX for Dummies Questions & Answers 3 01-02-2008 09:22 AM
Running a Cron Script only @ Startup Pls Help!! perk_bud Shell Programming and Scripting 3 07-17-2007 03:29 AM
Running script using cron ankurgupta Shell Programming and Scripting 4 12-12-2002 06:41 AM
Cron running shell scripts. cfoxwell UNIX for Dummies Questions & Answers 3 09-26-2001 08:35 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-15-2008
Registered User
 

Join Date: Feb 2008
Posts: 6
Stumble this Post!
error in running shell script in cron

#!/bin/bash

CLASSPATH=.
#CLASSPATH=${CLASSPATH}:${INSTALL_PATH}home/squidlog/CopyFile.java
CLASSPATH=${CLASSPATH}:${INSTALL_PATH}usr/java/latest/lib/*.jar

javac CopyFile.java


echo "CLASSPATH=$CLASSPATH"

#home/wbiadmin/JRE1.4.2/j2re1.4.2_15/bin/java CopyFile
/usr/bin/java CopyFile




i tried setting classpath still i have problem
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-15-2008
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,812
Stumble this Post!
this: *.jar

is not a valid entry in the CLASSPATH - CLASSPATH should just a colon delimited set of string - all of which are directories.
Reply With Quote
  #3 (permalink)  
Old 04-16-2008
Registered User
 

Join Date: Feb 2008
Posts: 6
Stumble this Post!
setting classpath

plz send me the code for how to write classpath in linu
Reply With Quote
  #4 (permalink)  
Old 04-16-2008
era era is online now
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,631
Stumble this Post!
What jim said; you need to omit the "*.jar" part. Also to be on the safe side, add export CLASSPATH
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:06 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0