if you're spooling a sql file instead of a shell script you'll need a "!" or "host" in front of the rm.