Try using the pid for the process e.g. filename.$$ from your shell script.
Also, if you are using ksh you can use filename.$RANDOM.
It is an open issue how to make a unique temp file on Solaris.
Other systems have "mktemp" but Solaris does not have one.
8. cron help