hive_hook: Using -f with a temp file instead of -e