1 FAQ tagged "$RANDOM"
Viewing 1-1 of 1 FAQ -- How to: create a temporary file securely
Q. How do I create a temporary file securely under UNIX Bash shell?
A. There are many ways:
[a] mktemp command - make temporary unique filename
[b] $RANDOM - Use $RANDOM variable
mktemp command
From the man page:
The mktemp utility takes the given filename template and overwrites a portion of it to create a unique filename. The [...]
Viewing 1-1 of 1 FAQ - ( see all popular tags )



Recent Comments
Today ~ 70 Comments
Today ~ 2 Comments
Yesterday ~ 10 Comments
Yesterday ~ 12 Comments
09/03/2008 05:29 pm (2 days ago) ~ 6 Comments