I want to create many unique filename from my ksh program.
What would be the easiest way to accomplish this?
Should I just use something like TEMP_${RANDOM} or is there something
similar to mktemp or tmpnam in ksh?
Thanks,
What would be the easiest way to accomplish this?
Should I just use something like TEMP_${RANDOM} or is there something
similar to mktemp or tmpnam in ksh?
Thanks,
> What would be the easiest way to accomplish this?
> Should I just use something like TEMP_${RANDOM} or is there something
> similar to mktemp or tmpnam in ksh?
> Thanks,
--
Dana French
> I want to create many unique filename from my ksh program.
> What would be the easiest way to accomplish this?
> Should I just use something like TEMP_${RANDOM} or is there something
> similar to mktemp or tmpnam in ksh?
# call it to get the unique filenameQuote:}
1. How to generate a unique filename
Check the functions tempnam() and tmpnam, these allow you to create
unique filenames. Then just use those to open a file for temporary
access. Also, there is a function tmpfile() which will return a
unique file descriptor. (I think that this function is only availible
with ANSI C, though?) Hope this helps some!
- Dan C.
3. Getting a userid on server side, generating a unique number, etc.
5. generating relatively universal unique id
6. What can you do with a Solaris box?
7. Need to generate a 'unique' ID number?
8. Bad colors with Xpmac .. fine with MacOS
9. Name of the command to generate a unique (file) name?
10. How to get a unique filename?
11. ensuring unique FTP upload filenames
12. unique filenames in Makefile
13. automatically rename file to unique filename