#!/bin/bash

cwd=`pwd`

/usr/bin/java -jar ResourceTracker.jar
crontab -l > NewCronTabFile
echo "*/5 * * * * $cwd/CheckProcess.sh" >> NewCronTabFile
crontab NewCronTabFile
sed -i "s%DIR%$cwd%g" $cwd/CheckProcess.sh
