The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 and shell scripting languages 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 08:46 AM
Running a script in cron question NycUnxer UNIX for Dummies Questions & Answers 3 01-02-2008 01:22 PM
Running a Cron Script only @ Startup Pls Help!! perk_bud Shell Programming and Scripting 3 07-17-2007 06:29 AM
Running script using cron ankurgupta Shell Programming and Scripting 4 12-12-2002 10:41 AM
Cron running shell scripts. cfoxwell UNIX for Dummies Questions & Answers 3 09-26-2001 11:35 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-15-2008
sari sari is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 6
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
  #2 (permalink)  
Old 04-15-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,715
this: *.jar

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

Join Date: Feb 2008
Posts: 6
setting classpath

plz send me the code for how to write classpath in linu
  #4 (permalink)  
Old 04-16-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
What jim said; you need to omit the "*.jar" part. Also to be on the safe side, add export CLASSPATH
Sponsored Links
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 05:38 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