# Don't start if we're already running
if [ -e $LOCKFILE ]; then
- echo `date`": $LOCKFILE exists, exiting."
- echo `date`": $LOCKFILE exists, exiting." >&2
+ echo `date`": $LOCKFILE exists for pid `cat $LOCKFILE`, exiting."
+ echo `date`": $LOCKFILE exists for pid `cat $LOCKFILE`, exiting." >&2
exit 1
fi;
touch $LOCKFILE
-echo "$$" > $LOCKFILE
+echo $$ > $LOCKFILE
#syntax of remotestat:
#hostname:/directory/