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
4
votes
2 answers

MySQL Temp Table Location

I'm getting this error when running a query: [ERROR] [MY-013132] [Server] The table '/tmp/#sql1127b_9_0' is full! I go into the /tmp directory but I can't see the table, I'm presuming it gets deleted when the query has finished running. So I go into…
Charlie Coder
  • 43
  • 1
  • 5
4
votes
3 answers

Create Ansibles remote_tmp from config file variable

I want to fix the following warning by manually creating the path: Wednesday 22 January 2020 12:50:41 +0100 (0:00:05.878) 0:20:16.431 ***** [WARNING]: Module remote_tmp /home/db2inst1/.ansible/tmp did not exist and was created with a mode of…
Lion
  • 16,606
  • 23
  • 86
  • 148
4
votes
1 answer

Why do I get undefined method `mktmpdir' for Dir:Class in irb using Ruby 2.6.3?

https://ruby-doc.org/stdlib-2.6.3/libdoc/tmpdir/rdoc/Dir.html contains a description about the mktmpdir method of the Dir class. mktmpdir(prefix_suffix=nil, *rest) ::mktmpdir creates a temporary directory. An app uses it with no error but why it…
Christian
  • 4,902
  • 4
  • 24
  • 42
4
votes
3 answers

Can you assume there is always a Windows temp folder?

The question How to get temporary folder for current user nicely describes how to go about finding the temp folder to be used for the current user. In the documentation of Path.GetTempPath it notes only one exception which can arise due to security…
StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
4
votes
1 answer

What is the purpose of safeToDelete.tmp file in the temp dir in Apache Tomcat 8.5.40?

I am using Apache Tomcat 8.5.40 and there is a temp directory and safeToDelete.tmp file 0KB in it. What is this file used for?
ilce
  • 1,007
  • 3
  • 12
  • 20
4
votes
1 answer

How to safely and portably create temp file AND get its name

I'm working with some legacy code which passes around the name of a file. I'd like to create a temp file and give the legacy code the name of the file to be opened later using legacy functions. tmpnam is unsafe due to the race case between getting…
SonicN
  • 163
  • 7
4
votes
2 answers

.NET Change Temp Path

How to set temp path for this two methods? System.IO.Path.GetTempFileName() System.IO.Path.GetTempPath() My company application was designed for Windows 2008 with .NET 4.0. However the application is going to support both Windows 2008 and…
Alex Yeung
  • 2,495
  • 7
  • 31
  • 48
4
votes
1 answer

TPath.GetTempFileName replies "The directory name is invalid"

TPath.GetTempFileName (which wraps the WinAPI GetTempFileName) replies "The directory name is invalid" when called from an application run by a user who is logged into a domain. if they use a login that isn't using the domain, it works. The customer…
X-Ray
  • 2,816
  • 1
  • 37
  • 66
4
votes
2 answers

SQL - How to declare date range in a temp table?

I'd like to assign a value to dates I'm using so I don't have to go through the code to make the changes each time I want to look at a different month. When I submit the following code, it works fine: Declare @startDate datetime = '9/1/2015' Declare…
Karen
  • 157
  • 2
  • 12
4
votes
3 answers

Delete files in temp folder in C#

I am working in Visual Studio 2015 and I am using C#. So I created Windows Form and I added a button named "button1". What I am trying to do is: when user clicks a button, the content of folder, named ( let´s say ) temp, located in C:/temp, is…
Nej Marinković
  • 43
  • 1
  • 2
  • 6
4
votes
1 answer

How to create a temp file with a specific name

I would like to create a temp file which deletes itself on script ending with a specific filename. I know tmpfile() does the "autodelete" function but it doesn't let you name the file. Any ideas?
Alex
  • 131
  • 2
  • 11
4
votes
1 answer

Extract contents of RPM into temporary directory in Python

I'm writing a tool to verify RPMs in Python and print out the actual diffs in the files that changed. I can fetch the RPMs from the ftp server with ftplib. I was thinking of saving the rpm in /tmp and using subprocess module to run rpm2cpio…
jh314
  • 27,144
  • 16
  • 62
  • 82
4
votes
2 answers

Java: URLClassLoader keeps loaded classes in Temp dir

I'm trying to load jar file from web using URLClassLoader, all works fine, but all loaded classes keeps stored in Windows temp directory, and can be copied for deobfuscation until I call classLoader.close(); which in turn will cause a program…
Draiget
  • 113
  • 11
4
votes
3 answers

Read GPU temperature in C#

I want to create a program that monitors my GPU's temperature (AMD ATI HD) and if it goes below say 50C to send me an email. I know how to send an email - I just have no idea on how to get the temerature :/ Any help would be awesome! Running Visual…
Andy
  • 373
  • 1
  • 7
  • 24
4
votes
2 answers

Get the users temp folder path c++

Alright you all have been a tremendous help today and ive got one last question which will finish my program and I am hoping wont be difficult to answer. What I want to do is grab the users temp folder path and save it to an std::string. I was able…
Elliot Ames
  • 1,039
  • 1
  • 10
  • 8