EnglishFrenchSpanish

Ad


OnWorks favicon

g.tempfilegrass - Online in the Cloud

Run g.tempfilegrass in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command g.tempfilegrass that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


g.tempfile - Creates a temporary file and prints it’s file name.

KEYWORDS


general, support, scripts

SYNOPSIS


g.tempfile
g.tempfile --help
g.tempfile [-d] pid=integer [--help] [--verbose] [--quiet] [--ui]

Flags:
-d
Dry run - don’t create a file, just prints it’s file name

--help
Print usage summary

--verbose
Verbose module output

--quiet
Quiet module output

--ui
Force launching GUI dialog

Parameters:
pid=integer [required]
Process id to use when naming the tempfile

DESCRIPTION


g.tempfile is designed for shell scripts that need to use large temporary files. GRASS
provides a mechanism for temporary files that does not depend on /tmp. GRASS temporary
files are created in the data base with the assumption that there will be enough space
under the data base for large files. GRASS periodically removes temporary files that have
been left behind by programs that failed to remove them before terminating.

g.tempfile creates an unique file and prints the name. The user is required to provide a
process-id which will be used as part of the name of the file. Most Unix shells provide a
way to get the process id of the current shell. For /bin/sh and /bin/csh this is $$. It
is recommended that $$ be specified as the process-id for g.tempfile.

EXAMPLE


For /bin/sh scripts the following syntax should be used:
temp1=`g.tempfile pid=$$`
temp2=`g.tempfile pid=$$`
For /bin/csh scripts, the following can be used:
set temp1=`g.tempfile pid=$$`
set temp2=`g.tempfile pid=$$`

NOTES


Each call to g.tempfile creates a different (i.e. unique) name. Although GRASS does
eventually get around to removing tempfiles that have been left behind, the programmer
should make every effort to remove these files. They often get large and take up disk
space. If you write /bin/sh scripts, learn to use the /bin/sh trap command. If you write
/bin/csh scripts, learn to use the /bin/csh onintr command.

Use g.tempfilegrass online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    DivFix++
    DivFix++
    DivFix++ is yours AVI video repair and
    preview software. It designed for repair
    and preview files which are on download
    from ed2k(emule), torrent, gnutella, ftp...
    Download DivFix++
  • 2
    JBoss Community
    JBoss Community
    Community driven projects featuring the
    latest innovations for cutting edge
    apps. Our flagship project JBoss AS is
    the leading Open Source,
    standards-compliant...
    Download JBoss Community
  • 3
    Django Filer
    Django Filer
    django Filer is a file management
    application for django that makes
    handling files and images a breeze.
    django-filer is a file management
    application for djang...
    Download Django Filer
  • 4
    xCAT
    xCAT
    Extreme Cluster Administration Toolkit.
    xCAT is a scalable cluster management
    and provisioning tool that provides
    hardware control, discovery, and OS
    diskful/di...
    Download xCAT
  • 5
    Psi
    Psi
    Psi is cross-platform powerful XMPP
    client designed for experienced users.
    There are builds available for MS
    Windows, GNU/Linux and macOS.. Audience:
    End Users...
    Download Psi
  • 6
    Blobby Volley 2
    Blobby Volley 2
    Official continuation of the famous
    Blobby Volley 1.x arcade game..
    Audience: End Users/Desktop. User
    interface: OpenGL, SDL. Programming
    Language: C++, Lua. C...
    Download Blobby Volley 2
  • More »

Linux commands

Ad