Creating variable in /tmp
I am building a shell script (forgive me if this is the wrong place to post) which is supposed to create a temp directory in /tmp. The reason for this is to store bits of information such as application version, etc... that keeps my installation script current. I'm trying to create the following variable:
TMPDIR=/tmp/$$; export TMPDIR
And to give you all a better example, I have a line in my script (which was written and works in Linux btw - I am relatively new to mac) that checks the current version of the package to be installed through this script:
curl -O ${TMPDIR} "${URL}/current"
Current holds a binary that fires back the latest version number.
Anyways, any help that I could get with this would be greatly appreciated.
Thanks!
PowerMac G5, Mac OS X (10.5.7)