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
0
votes
3 answers

What is the best way to create a non-persistent file in linux

In my application, I have a C process created which will be re-spawned if the process dies. Now I have a requirement to know if the process is spawned for the first time(after system reboot), due to which function X will be called, or if the process…
Manoj
  • 23
  • 6
0
votes
1 answer

Inserting sql query into temp table for later use

I have a table which I need to perform actions on and then insert the result in a temp table so I can join the temp table with other tables later. Here's my code: if object_id ('tempdb..tempMHR_X') is not null drop table tempMHR_X; create table…
J. S.
  • 19
  • 5
0
votes
1 answer

Telerik Appbuilder Temp .JS files cleanup

I am loading templates dymanically. i.e., base.html onLoad(loadSubPage1, 'some_div') loads subPage1.html into some_div on the base.html page ** Note: the onLoad method loads the html. The .html file has a reference to its .js file (so it's loaded…
Robert Green MBA
  • 1,834
  • 1
  • 22
  • 45
0
votes
1 answer

Python2.7 - reading from tempfile

I use python2.7 and i have a question about reading from tempfile. Here is my code: import tempfile for i in range(0,10): f = tempfile.NamedTemporaryFile() f.write("Hello") ##f.seek(0) print f.read() With this code , i get…
AlexDotis
  • 324
  • 4
  • 11
0
votes
1 answer

Best practice for saving temporary files in macOS?

Is there a common practice where to save temporary files on macOS? Currently I'm using /tmp but I often see the folder /var/folders in use for saving temporary files. Is there a suggested way? Thanks!
Mike Nathas
  • 1,247
  • 2
  • 11
  • 29
0
votes
1 answer

Get Cache Directory for all installed apps in android

I want to get exact size of cache directory of android installed apps. I have tried this. List listOfApps = packageManager.getInstalledApplications(PackageManager.GET_META_DATA); for(ApplicationInfo applicationInfo :…
Naveen
  • 77
  • 1
  • 5
0
votes
0 answers

Java create temporary file throught Lua execution

i have problems creating a temporary file with java through lua. The code works if i start the jav program through the command line but if the program is started by the Lua-plugin it does not create a file. Cases: Command Line> java Bot…
0
votes
0 answers

how to create temp type in ElasticSearch

I want to use it like temp table in SQL. That mean, I can create it, update and delete temp type in ElasticSearch with name each type is various. In my case with SQL, temp table can call many time and control them by name with suffix is containerNo.…
0
votes
0 answers

Acro Tmp files using iText

I'm generating PDF files using an old library of iText on Unix. Everything is going fine, but my exploitation team has just contacted me telling they are having storage troubles with some temp files. After a discussion, they indicate me a lot of…
0
votes
0 answers

Temp 3d array not working

I am making a program that acts as the net of a 2x2x2 Rubik's Cube. In this method, I plan to make an if statement for each of the 12 possible moves (up clockwise, up counterclockwise, down clockwise, etc.), but my code for turning up clockwise is…
0
votes
2 answers

setenv('TEMP') has no effect on tempdir output

I'm trying to set the temporary directory in MATLAB using setenv('TEMP','C:\Temp') but it seems to have no effect: Code t = tempdir setenv('TEMP','C:\Temp'); t = tempdir Output t = C:\Users\KAR~1\AppData\Local\Temp\ t =…
0
votes
2 answers

sql update temp table from another table

1)#tblTemp RD ------ 20 Aug 5 Aug 30 Aug 4 Aug 20 Aug 18 Aug 2) tblMST startDate --------- 22 Aug 6 Aug 30 Aug 19 Aug I want update table #tblTemp using tblMST and need to get output like following: 3) #tblTemp …
0
votes
1 answer

System.IO.Path.GetTempPath() access denied

im creating temporary files to be stored in the Temp folder found by: string path = System.IO.Path.GetTempPath() method returns C:\windows\Temp\ i append my filename: string filename = myfile.txt System.IO.Path.Combine(path,filename) However, this…
matskn
  • 1,290
  • 6
  • 17
  • 30
0
votes
1 answer

Looping through a table to create a temp table

I have a table that has one date field that is the week number and then 7 decimal fields that represents the hours worked. I want to loop through this table and create a row in a temp table for each day of the week with the hours worked each day. I…
0
votes
3 answers

Track changes in a table on a daily basis

I have a table that stores each of our properties and whether they have certain icons against them on the website. This table is updated on a daily basis and date stamped. Table Fields: DateStamp, PropertyCode, PropertyName,…
Claire
  • 51
  • 6