You have the option of creating temporary files in your POSIX
scripts using the touch command e.g. touch /tmp/testfile
this way you have control of the name of the file so that you can
delete it in the tidy-up before you exit your scripts,
Bill
> * +44 (0)151-235-3055
Fax: +44 (0)151-235-3151
> * mailto:[log in to unmask]
>
>
-----Original Message-----
From: Ken Hirsch [mailto:[log in to unmask]]
Sent: 16 November 2001 14:56
To: [log in to unmask]
Subject: Re: [HP3000-L] POSIX
No. Or, at least, there's nothing automatic built into the kernel. If you
are going to use a file in just one _process_, you can delete it as soon as
you open it. It will go away when the process dies. This is of limited
usefulness since you can't pass it to another program in the same "job".
Often programmers will create all their temporary files in a specific
directory and/or with a specific name and then delete them all at the end of
the job.
Different systems have different conventions about temporary files. Some
have processes which run each night deleting files which start with "#" and
haven't been accessed in _n_ hours. Or they may delete files in a /tmp or
/var/tmp or /usr/tmp directory if they haven't been accessed in a while.
----- Original Message -----
From: "Shahan, Ray" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Friday, November 16, 2001 9:49 AM
Subject: POSIX
> Is there such a thing as a TEMP file in POSIX/UNIX?
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
***********************************************************************
Confidentiality: This e-mail and its attachments are intended for the
above named recipient(s) only and may be confidential and/or
privileged. If they have come to you in error you must take no action
based on them, nor must you copy or disclose them or any part of their
contents to any person or organisation; please reply to this e-mail
and highlight the error immediately and delete this e-mail and its
attachments from your computer system.
Security Warning: Please note that this e-mail has been created in the
knowledge that Internet e-mail is not a 100% secure communications
medium. We advise that you understand and observe this lack of
security when e-mailing us.
Viruses: Although we have taken steps to ensure that this e-mail and
its attachments are free from any virus, we advise that in keeping
with good computing practice the recipient should ensure they are
actually virus free
***********************************************************************
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|