I'm working on a file processing project and I am trying to run a shell script called runProcessing.sh in PuTTY. The server uses ksh. My supervisor told me to use ./ runProcessing.sh <param1> <param2>
when executing a script, but whenever I use ./ it says either cannot execute
or file not found
. Whenever I put in just runProcessing.sh
, it returns null pointer exceptions, which I have been working off of to continue my task for now.
I understand what ./ does when running scripts, but I'm not sure why it isn't working when I'm trying to run my script with it. Any tips or advice? I am a novice with Linux/UNIX.
Here is my script:
#!/bin/ksh
#
# Script to download processing files from the appropriate target
#
# $Id: runProcessing.sh 604 2013-01-14 21:56:35Z alex_rempel $
#
DIR=`dirname $0`
. $DIR/setEnvironment.sh
java $LDAPRUNMODE $JAVAOPT com.webproject.db.processing.FPJob --logdir $CISLOGDIR --file [2] $*
RET=$?
if [ $RET -gt 0 ]
then
echo
echo
echo "------ runProcessing.sh Failed ------"
echo
echo
exit $RET