Questions tagged [temp]

A common directory on a file system which acts as a "scratch area" that can be used to hold files and directories for short periods of time.

When a file system is executing some process, it is often desirable to record information outside of registers/RAM and save them into memory. However, if these files are not intended to be permanently stored, a temporary "temp" directory may used to facilitate the storage/disposal of these files. For example, you might have a temp directory which stores logging data, which is regularly cleaned by the OS at discrete intervals.

temp may also refer to individual files, e.g. temp_data.csv which would be a temporary data file in the CSV format.

556 questions
709
votes
32 answers

Docker error : no space left on device

I installed docker on a Debian 7 machine in the following way $ echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list $ sudo apt-get update $ curl -sSL https://get.docker.com/ubuntu/ | sudo sh After that when I…
user_mda
  • 18,148
  • 27
  • 82
  • 145
138
votes
10 answers

Environment variable to control java.io.tmpdir?

I've used the TMP environment variable to control things like where gcc writes it's temporary files, but I can't seem to find an equivalent for java's createTempFile API. Does such an environment variable exist?
Zach Hirsch
  • 24,631
  • 8
  • 32
  • 29
108
votes
6 answers

Difference between #temptable and ##TempTable?

What is the difference between #temptable and ##TempTable in SQL Server?
Vignesh Kumar A
  • 27,863
  • 13
  • 63
  • 115
62
votes
3 answers

php:: how long to tmp files stay?

I am working on an upload script. If a user uploads a file and it already exists I want to warn the user (this is all through ajax) and give them the option to replace it, or cancel. Instead of moving the file, I was curious if I could just leave…
Hailwood
  • 89,623
  • 107
  • 270
  • 423
51
votes
9 answers

How to remove tmp directory files of an ios app?

I'm working on an app that uses the iPhone camera and after making several tests I've realised that it is storing all the captured videos on the tmp directory of the app. The captures don`t disappear even if the phone is restarted. Is there any way…
oniglo
  • 511
  • 1
  • 4
  • 3
51
votes
2 answers

tempfile.TemporaryDirectory context manager in Python 2.7

Is there a way to create a temporary directory in a context manager with Python 2.7? with tempfile.TemporaryDirectory() as temp_dir: # modify files in this dir # here the temporary diretory does not exist any more.
guettli
  • 25,042
  • 81
  • 346
  • 663
45
votes
4 answers

Where is the temp folder on Android devices?

Where is the temp folder located on Android phones?
Alexi
40
votes
6 answers

MySQL - Select from a list of numbers those without a counterpart in the id field of a table

I have a list of numbers, say {2,4,5,6,7} I have a table, foos, with foos.ID, including say, {1,2,3,4,8,9} Id like to take my list of numbers, and find those without a counterpart in the ID field of my table. One way to achieve this would be to…
SocialCensus
  • 1,249
  • 4
  • 15
  • 11
37
votes
4 answers

Creating a thread-safe temporary file name

When using Tempfile Ruby is creating a file with a thread-safe and inter-process-safe name. I only need a file name in that way. I was wondering if there is a more straight forward approach way than: t = Tempfile.new(['fleischwurst',…
iltempo
  • 15,718
  • 8
  • 61
  • 72
36
votes
2 answers

Clarifications on Tomcat's "temp" and "work" directories

I have been using Tomcat for quite a while now but I am not sure what the "temp" and "work" directories are used for and when I need to clean which. Can anyone please advise?
balteo
  • 23,602
  • 63
  • 219
  • 412
22
votes
4 answers

What's the difference between %TMP% and %TEMP% in Vista environment variables?

On my computer, the environment variables %TMP% and %TEMP% both point to the same location. Are those for backward compatibility issues only, or is there a real difference?
Brann
  • 31,689
  • 32
  • 113
  • 162
20
votes
2 answers

AWS Lambda No Space Left on Device

I am using API gateway to call lambda function that imports a mpeg file (10 mb) from s3 and saves in /tmp folder of lambda and the lambda uploads it to external API (youtube etc) Recently the API gateway call to lambda is failing intermittently with…
codeexplorer
  • 409
  • 1
  • 6
  • 19
20
votes
1 answer

What can I use instead of #Temp table in sql function

Here is my sql query. CREATE FUNCTION UF_GetOrderProducts ( @OrderId int ) RETURNS VARCHAR(500) AS BEGIN SELECT Identity(int,1,1) ID, ProductId INTO #Temp FROM OrderProduct WHERE OrderId = @OrderId Declare @Id int, @Count int, …
cagin
  • 5,772
  • 14
  • 74
  • 130
17
votes
2 answers

Why does %TEMP% resolve to a non-deterministic path of the form %TEMP\?

I have a Windows Server 2008 32 bit and when I'm typing %temp% it takes me to ..AppData\Local\Temp\1\ or ..AppData\Local\Temp\2 instead of ..AppData\Local\Temp I've already checked the Environment Variables and they are ok. I'm asking that because I…
shacharsa
  • 351
  • 1
  • 4
  • 12
16
votes
21 answers

Visual studio 2017 installer won't run after extracting

visual studio 2017 community.exe won't run after extracting to the temp. OS: windows 10 x64bit Setup : community version in the temp folder bootstrapper log says, Beginning of the log. Start Time: 3/26/2017 1:14:54 AM VisualStudio…
1
2 3
37 38