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

How to get temp folder and set a temp file path?

How to get temp folder and set a temp file path? I tried code bellow but it have error. Thank you very much! TCHAR temp_folder [255]; GetTempPath(255, temp_folder); LPSTR temp_file = temp_folder + "temp1.txt"; //Error: IntelliSense: expression must…
4
votes
1 answer

How can I change the temp folder where sqlite creates etilqs files?

(This question is a spin-off of How to avoid httpd.exe from creating etilqs in C\WINDOWS\TEMP\?) I have Apache 2.4 installed in my computer and I use a localhost web application. This application uses a sqlite database (through PHP PDO), which was…
Oriol
  • 274,082
  • 63
  • 437
  • 513
4
votes
4 answers

Get temperature from NVidia GPU using NVAPI

I have been trying for the last few days to get the temperature of my GPU using C++ using the NVAPI i have the following code #include "stdafx.h" #include "nvapi.h" int _tmain(int argc, _TCHAR* argv[]) { NvAPI_Status ret = NVAPI_OK; int…
Shuttleu
  • 123
  • 2
  • 6
4
votes
2 answers

vim temporary files with native vim on windows

When running a native compilation of gVim under Win7 I have the following in my vimrc: if has ("win32") let $TMP="C:/tmp" setlocal equalprg=tidy\ --output-xhtml\ y\ -utf8\ --wrap-attributes\ 1\ --vertical-space\ 1\ --indent\ auto\ --wrap\ 0\…
Screenack
  • 747
  • 10
  • 26
4
votes
1 answer

Error while building an xtext project with ant: Generation of the Grammar classes fails

I am developing an xtext plug-in project for an eclipse application for my Bachelor thesis. I want to do the 'Generate Xtext Artifacts' at runtime with an ant script executing the Mwe2Launcher class and do the generation in an temp folder. I wrote…
pekayde
  • 118
  • 10
3
votes
1 answer

Rails can't generate Tempfile

I installed my rails-app via Passenger on my apache but I'm getting a strange error cannot generate tempfile `/var/rails/wo42/tmp/cache/assets/sprockets%2Fb94bb762c37131f8bb65f843c621876720120401-29970-ha7f1p-9' Extracted source (around line…
jhbruhn
  • 868
  • 2
  • 10
  • 23
3
votes
1 answer

SQLITE: PRAGMA temp_store = MEMORY

In all optimization guides people talk about pragma's like JOURNAL_MODE or SYNCHRONOUS, but I never read anything about the TEMP_STORE pragma? I would expect it has a large impact, so why is it never mentioned? It's purpose is to move all SQLite's…
Maestro
  • 9,046
  • 15
  • 83
  • 116
3
votes
1 answer

Get TEMP folder

How do I get the path to the Temp folder from inside an InnoSetup Pascal script? Not the folder that the setup uses as it its temporary folder (which can be accessed using {tmp}), but the actual user's Temp folder.
svick
  • 236,525
  • 50
  • 385
  • 514
3
votes
1 answer

Testing Rust code by using temp directory/files while avoiding duplicate code

I'm dealing with a lot of tests that all have the same structure as follows: #[cfg(test)] mod tests { #[test] fn test_sample() { // create file, optionally write something inside File::create().unwrap(); …
rdxdkr
  • 839
  • 1
  • 12
  • 22
3
votes
1 answer

node ebusy when spawning .exe

I'm working with a temp file that's downloaded from a server. but when I ran it on macOS, it ran fine. and did what it was supposed to do. but when I ran it on windows, it keeps giving me an EBUSY error when trying to spawn the child. I tried…
Mo K
  • 45
  • 6
3
votes
0 answers

How to create TEMP file which will store JSON and which will be removed at the end of session

This is what I'm using now.... import tempfile import json with tempfile.NamedTemporaryFile(suffix='.json') as tf: json.dumps(jsonKey) keyPath = tf.name I looking for a way to create a temporary file that will be…
Oksana Ok
  • 515
  • 3
  • 7
  • 19
3
votes
0 answers

Apache Airflow(1.10.12): Can't see any tmp directories or files created

TL;DR I can't seem to find the temp files created during my airflow dag run no matter what I do. Hello Folks, I'm working with an Apache Airflow(1.10.12) system on Ubuntu 20.04. My process is simple Download FTP Files Split lines of files and…
Black Dynamite
  • 4,067
  • 5
  • 40
  • 75
3
votes
1 answer

shutil copy command writes 0 byte file copying temp files

I have another method calling this function 3 times to write 3 different files. The first 2 files are copied to the destination folder as expected, the third file is always zero bytes. If I turn off deletion I can see that all 3 temp files are…
Andrew Gill
  • 361
  • 1
  • 14
3
votes
1 answer

How to setup JsReport .NET to use current app folder

Is there way to setup JsReport to use current application folder for storing temp files. Not using common folder C:\Windows\Temp\jsreport? If there are multiple applications running on common IIS, it produces Errors. Error rendering report: A…
Bruno B
  • 199
  • 1
  • 5
3
votes
1 answer

Path.GetTempFileName() - can I change this to use a shared drive?

Using VS2008, c#. When I call Path.GetTempFileName(), the temp file generated is something like: C:\Users\allensamuel\AppData\Local\Temp\tmpC1D0.tmp However, in the company I work, using the C: drive for files is not prohibited. Rather, a login…
Iain
  • 105
  • 2
  • 8