Hello,
Am gettting this error on my email java application. The app utilizes some properties files to get certain parameters. I have checked all paths to make sure they are correct. I wonder if it has to do with incompatible jars such as xerces or xalan. The application was pre-compiled using...
Hello,
Am using log4j to log errors for my Java application. When i run the unix script I get the following error message:
log4j:ERROR No appenders could be found for category (classname).
log4j:ERROR Please initialize the log4j system properly.
I do have the log4j.jar included in my...
Hello,
Am using log4j to log errors for my Java application. When i run the unix script I can the following error message:
log4j:ERROR No appenders could be found for category (classname).
log4j:ERROR Please initialize the log4j system properly.
I do have the log4j.jar included in my...
Thanks for your quick reply. when i ran your revised script, i get an error that says "can't access *.ems"
I do have some ems files in the same directory that the script is running in.
any ideas?
I need to rename files by changing only the file extension (retain the filename) using a for loop. i found this piece of code online
OLDPREFIX=aaa
NEWPREFIX=bbb
for FILE in "$OLDPREFIX"*
do
NEWNAME=´echo "$FILE" | sed -e "s/^${OLDPREFIX}/$NEWPREFIX/"´
mv "$FILE" "$NEWNAME"
done
But when i...
I found this line of code online which seems to do what i want what am getting errors
#!/bin/sh
OLDSUFFIX=ems
NEWSUFFIX=failed
for FILE in *."$OLDSUFFIX"
do NEWNAME=´echo "$FILE" | sed -e "s/${OLDSUFFIX}\$/NEWSUFFIX/"´
mv "$FILE" "$NEWNAME"
done
any ideas on a simpler way?
Hello,
I need to be able to loop through all the files in a certain directory (e.g directory A). The files am looking for would have an EMS extension (i.e *.ems). Once it locates these files, my script should rename the files i.e from testfile.ems to testfile.txt. It should keep the orginal...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.