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

Temp files automatically deleted in R shiny app - Error in file: cannot open the connection

I created a R shiny app that automatically runs every day using a batch file. Everything works fine when lauching the app, but the next day it crashes and I get the following message: Warning in file(open = "w+") : cannot open…
JeanBertin
  • 633
  • 1
  • 7
  • 23
8
votes
4 answers

How to delete all temp files using powershell

Anyone knows how to delete all temp files using powershell. Get-ChildItem $env:TEMP\TEMP | Remove-Item -confirm:$false -force -Recurse I tired this code but it couldn't work. Can you suggest me any better way to perform the same.
Mshah17
  • 83
  • 1
  • 2
  • 8
8
votes
1 answer

Disk space required for unix sort

I am currently doing a UNIX sort (via GitBash on a Windows machine) of a 500GB text file. Due to running out of space on the main disk, I have used the -T option to direct the temp files to a disk where I have enough space to accommodate the entire…
Stonecraft
  • 860
  • 1
  • 12
  • 30
7
votes
2 answers

Create temporary file in C, MS Windows system

Basically, i have a program that is given a 4 meg compressed file, it has to decode this file into uncompressed ~ 100 meg, then compress it back into ~4 meg file. I need to store this intermediate 100 meg file somewhere on the drive (dont want to…
Istrebitel
  • 2,963
  • 6
  • 34
  • 49
7
votes
11 answers

Reverse String in Java without using any Temporary String,Char or String Builder

Is it possible to reverse String in Java without using any of the temporary variables like String, Char[] or StringBuilder? Only can use int, or int[].
Adil Bhatty
  • 17,190
  • 34
  • 81
  • 118
7
votes
0 answers

flutter_tools folder generation in local temp folders

Whenever I run a newly created flutter project, a flutter_tools folder is generated on my AppData/Local/Temp folder that does not go away and I have to delete it manually. My main problem is that over the time, since when running or debugging an…
user14624595
  • 874
  • 7
  • 19
7
votes
2 answers

How to create multiple tempdirs in a single R session?

I need to create multiple temp directories during a single R session but every time I call tempdir() I get the same directory. Is there an easy way to ensure that every call will give me a new temp directory?
Michal
  • 6,411
  • 6
  • 32
  • 45
7
votes
1 answer

PHP code contained in phpXXXX.tmp files in temp directory

I have noticed that our temp directory has a number of what appear to be temporary files with names like phpA3F9.tmp Looking into the contents I find a number followed by some PHP code, the following code appears in several files 9990000
Mark_1
  • 623
  • 6
  • 16
7
votes
3 answers

How is the Tomcat temp directory location defined?

I am running Tomcat bundled with Liferay5.2.3 and use Eclipse 3.5 (Galileo) as my IDE. I set up my Tomcat server in Eclipse as per this blog entry: http://www.jroller.com/holy/entry/developing_portlets_for_liferay_in. If I start Tomcat via the…
sdoca
  • 7,832
  • 23
  • 70
  • 127
7
votes
2 answers

Java temp files and automated deletion

It is safe to use java's createTempFile method to create a temp file and then rename it and keep it as a permanent file? Or does java or the system in some way keep track of its temporary files and delete them at some point? btw..this is related to…
cweston
  • 11,297
  • 19
  • 82
  • 107
7
votes
2 answers

Does the path returned by Path.GetTempPath() stay constant?

I have a Web Service that calls another Executable which fetches a list of files and stores them at a temporary location, which will in turn be read by the web service. I thought i will use the system's temp folder and found out that i could use…
Sadhir
  • 413
  • 4
  • 13
7
votes
2 answers

OSX: API for retrieving path to user's ~/temp folder

Does OS X have a separate temp folder for each user? If so, how to retrieve the temp folder path for the current user programmatically? PS Looking at my own OS X file system, I can't see such a folder.
P i
  • 29,020
  • 36
  • 159
  • 267
6
votes
0 answers

Symfony: The temp file does not exist after sumbiting form

I am using Symfony 2.7 and I have a form that process excel file. When I try to intentionally create form error (or when I catch any error and create form error - I mean to show my error message in the form) after reload of page (I think it's that…
Johny12369
  • 75
  • 7
6
votes
2 answers

How to clean (delete) temporary files if they exist in Ubuntu OS?

I need to do a lot of cleaning in my virtual machine whose operating system is Ubuntu. Normally in Windows, there is this kind of directory that contains temporary files and that should be cleaned: C:\Documents and Settings\Administrator\Local…
Ashish Detroja
  • 1,084
  • 3
  • 10
  • 32
6
votes
1 answer

Different Results on Different System

When I use this code at my home PC, it gives the output as "output1" ,But when i use the same code at my office PC gives a different output as "output2". code: System.out.println(System.getProperty("java.io.tmpdir")); Output 1:…
Kanak Shukla
  • 229
  • 1
  • 4
  • 11
1 2
3
37 38