Eric Shubert wrote:


From qtp-menu, here's a nice way to handle temp files:
# set a temp file for the working scratch. $$ is the current shell ID.
tempfile=$(tempfile 2>/dev/null) || tempfile=/tmp/$me.$$
# make sure the tempfile is deleted when we're done
trap "rm -f $tempfile" 0 1 2 5 15



Forgot about traps - and I was just using them the other day for a program to capture Ctrl-C.....
Thanks!


---------------------------------------------------------------------
    QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to