[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: Lidt om midlertidige filer



On Sun, 4 Dec 2005 12:06:12 +0100, Jens wrote:

> Jeg er i gang med at skrive en kombination af scripts og små C++ utilities, 
> der har har brug for at oprette nogle midlertidige filer, mens de behandler 
> en fil. Så jeg har disse spørgsmål:

> - Hvor placerer man traditionelt kortlivede midlertidige filer i Linux?
>   I /tmp?

Ja.

> - Hvordan sikrer man sig at der ikke er andree programmer der bruger det samme
>   filnavn? Unde Windoze ville jeg bare bede om et GUID, som jeg så bruger som
>   filnavn, men hvad gør man under Linux?

GUID (Windows) eller PID (Linux) er en dårlig idé ("fjenden" kan nemt
finde dit filnavn) - kig i stedet på tmpfile(3).


  Mvh.

-- 
 "Where hell waits behind every door                          Adam Sjøgren
  With John Denver songs"                                sslug@sslug


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2006-01-01, 02:01 CET [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *