I tried that cron entry, but I get errors in sh emailed to me:
/bin/sh: -c: line 0: unexpected EOF while looking for matching `''
/bin/sh: -c: line 1: syntax error: unexpected end of file
If I copy and paste bits from that crontab line into sh, I get a different error at the $PSS < $RAMQUOTA bit:
sh-4.2$ PSS=$( for pid in $( pgrep -u $USER ); do grep -s -i pss /proc/$pid/smaps; done | awk '{sum+=$2} END {printf "%d", sum/1000}' )
sh-4.2$ echo $PSS
152
sh-4.2$ (( $PSS < $RAMQUOTA )) || echo "over quota: $PSS > $RAMQUOTA"
sh: ((: 152 < : syntax error: operand expected (error token is "< ")