The filename is written in place of "?".
echo $?

Can you please give us some example.