I have an shell file with the following contents:
#!/bin/sh
echo "enter code hereecho "Enter the site name, followed by [ENTER]:"
read site_name
mkdir -p /usr/local/xpay4$site_name
cp /usr/local/xpay4/InitXpay4.jar /usr/local/xpay4$site_name/InitXpay4.jar
cd /usr/local/xpay4$site_name/
export PATH=.:/usr/java/jre1.6.0_16/bin
java -jar InitXpay4.jar
echo _
echo "To automatically send the request certificate to SecureTrading please remember the site alias"
read site_alias
cd /usr/local/xpay4$site_name/
cp $site_alias.req.pem /tmp/$site_alias.req.pem
mutt -s "Certificate Request" -a /tmp/$site_alias.req.pem support@securetrading.com < /usr/local/xpay4/email.txt
I get the following 2 errors:
./auto_xpay.sh: line 19: cp: command not found
./auto_xpay.sh: line 21: mutt: command not found
My question is how would i reset the path? or is this not the problem?
Thanks