[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Sheflug] Unique temporary filename



On Wed, 2002-05-15 at 15:44, David Morris wrote:
> The Camel book doesn't mention a mktemp though... isn't that part of the C
> runtime (says he dredging the outermost reaches of his feeble mind)?

It's just a Linux system command (I was going to say Unix, but I don't
know how many other Unixen have it.) Try "man mktemp". From perl, you'd 
probably do something on the lines of: 'retcode=system("mktemp
<arguments>")' and then check $retcode to see that it worked.

___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.