# $temp-name(5)

[Home] [Commands] [Variables] [Macro-Dev] [Glossary]

## NAME

$temp-name - Temporary file name

## SYNOPSIS

$temp-name FileName

## DESCRIPTION

$temp-names is automatically set to a nonexistent file name in the systems temporary file directory. On UNIX systems the temporary directory is fixed to "`/tmp/`", on other systems the temporary directory is set by the $TEMP environment variable.

## EXAMPLE

The following example uuencodes a given file into a temporary file and then inserts this file into the current buffer.

    set-variable #l0 @ml04 "Uuencode and insert file"
    set-variable #l1 $temp-name
    !force shell-command &spr "uuencode %s < %s > %s" #l0 #l0 #l1
    insert-file #l1
    !force shell-command &cat "rm " #l1

## NOTES

This variable can not be set, any attempt to set it will result in an error.

The returned file name is not guaranteed to be unique between calls, only that the file does not currently exist.

## SEE ALSO

shell-command(2), file-op(2).

(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12

</HMTL>