shell script
Hi,
I have a Red hat server where I'm trying to execute diferents shell scripts, but I am not able to do this.
A simple shell script that I try to execute is this:
#!/bin/ksh
JBOSS_HOME=/home/jboss/jboss-4.0.2
export JBOSS_HOME
echo $JBOSS_HOME
ls -al /home/jboss/jboss-4.0.2
ls -al /home/jboss/jboss-4.0.2/server/nps-tempo/log/*
rm /home/jboss/jboss-4.0.2/server/nps-tempo/log/*
(the folder "log" exists)
When I execute:
...]$ start_NPS-tempo_temp.sh
the result is:
: bad interpreter: The file or the directory does not exist
When I execute:
...]$ ksh start_NPS-tempo_temp.sh
the result is:
/home/jboss/jboss-4.0.2
: The file or the directory does not exist
: The file or the directory does not exist-tempo/log/*
: not foundempo_temp.sh[7]:
rm: it is not possible to be erased «/home/jboss/jboss-4.0.2/server/nps-tempo/log/*\r»: The file or the directory does not exist
I have tried to put #!/bin/sh where I have #!/bin/ksh
but the result is similar
I don't understand who is the problem.
Can you help me? thanks
|