comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » reading gziped CDFs
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: reading gziped CDFs [message #34249 is a reply to message #34120] Thu, 27 February 2003 10:43 Go to previous messageGo to previous message
K. Bowman is currently offline  K. Bowman
Messages: 330
Registered: May 2000
Senior Member
In article <b3lhp2$1j8e$1@nntp6.u.washington.edu>,
"Rick Towler" <rtowler@u.washington.edu> wrote:

> Ken suggested using mktemp() to create unique file
> names although that is a C library function and isn't native to IDL.

Actually, on my BSD-based system (OS X) mktemp has a command line
interface. Since he was thinking of spawning a gunzip command, he could
easily spawn a mktemp command first to generate a filename.

It would be safer, but not as portable as using the system clock.

Regards, Ken


bowman> mktemp /tmp/idl.XXXXX
/tmp/idl.9OIp9
bowman> ll /tmp
total 0
-rw------- 1 bowman wheel 0 Feb 27 12:36 idl.9OIp9



MKTEMP(1) System General Commands Manual
MKTEMP(1)

NAME
mktemp - make temporary file name (unique)

SYNOPSIS
mktemp [-d] [-q] [-t prefix] [-u] template ...
mktemp [-d] [-q] [-u] -t prefix

DESCRIPTION
The mktemp utility takes each of the given file name templates and
over-writes a portion of it to create a file name. This file name is
unique and suitable for use by the application. The template may be any
file name with some number of `Xs' appended to it, for example
/tmp/temp.XXXX. The trailing `Xs' are replaced with the current process
number and/or a unique letter combination. The number of unique file
names mktemp can return depends on the number of `Xs' provided; six `Xs'
will result in mktemp testing roughly 26 ** 6 combinations.

If mktemp can successfully generate a unique file name, the file is
created with mode 0600 (unless the -u flag is given) and the filename is
printed to standard output.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: histogram and binsize problems
Next Topic: Is PDF the only help option in 5.6?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 16:52:07 PDT 2025

Total time taken to generate the page: 0.00442 seconds