Questions tagged [tmp]

The traditional name of directories (especially on Unix and Unix-like operating systems) used to store temporary files. Also, the filename extension of temporary files.

317 questions
3
votes
1 answer

Do not see Spark RDDs after persist

I'm using Spark 1.2.0 and haven't configured SPARK_LOCAL_DIRS explicitly so assuming that persisted RDDs would go to /tmp. I'm trying to persist and RDD using the following code: val…
Jimit Raithatha
  • 398
  • 2
  • 4
  • 16
3
votes
2 answers

Mount disk from launch daemon on Mac OS X Yosemite

i am trying to mount /private/tmp as ram disk. I have this "ramfs.sh" script, which i found from the internet: #!/bin/bash ramfs_size_mb=1024 mount_point=/private/tmp ramfs_size_sectors=$((${ramfs_size_mb}*1024*1024/512)) ramdisk_dev=`hdid -nomount…
Clickbeetle
  • 629
  • 4
  • 13
3
votes
1 answer

Upload file binary data into variable

I am looking for a way to allow for file uploads but rather than writing the file to disk on the web-server, I would like to store the binary contents in a variable. I've found a simple example to actually perform uploads but I cannot find a way to…
user470760
3
votes
3 answers

Symfony app writing config files to tmp directory

I've inherited an old Symfony app (Symfony 1.4) and had to migrate it to a new server. I have no experience with Symfony, but the migration went well and everything works fine except one thing; the new server's admin(s) complain about the app…
Martin Vrkljan
  • 879
  • 10
  • 20
3
votes
1 answer

Is file I/O to tmpfs better performing than redis?

If /tmp is mounted with tmpfs, does this increase the speed of file I/O? Would file I/O to tmp in this way perform as well as something like redis? I'm wondering about all resources, not just speed.
pepper
  • 2,097
  • 5
  • 23
  • 29
3
votes
1 answer

copy file to /data/local/tmp

I want to copy some files from it's own data folder(e.g. "/data/data/com.example.copy/") to "/data/local/tmp/". I can't access /data/local/tmp/ in my app. Is it possible to do it? I don't have root access on my device. Here's my code: Process…
Aung Thiha
  • 1,195
  • 3
  • 13
  • 23
3
votes
1 answer

Prevent files in /tmp directory from being removed (Mac OS X)

I want to protect my /tmp directory to prevent the files inside from getting deleted, however "chmod +t /tmp" does not set the sticky bit. Is there alternative way to it on mac os x?
user3344382
  • 1,941
  • 4
  • 18
  • 17
3
votes
3 answers

check image for malicious code and delete it

How can I detect if an uploaded image has malicious code and delete it from the temp folder? code: $_FILES['file']['tmp_name'] as far as i know there is no way to stop it hitting the /tmp folder I read that i could use $file_data =…
user1398287
  • 5,245
  • 5
  • 21
  • 25
3
votes
6 answers

VB6 freezes when making exe file

I'm writing a project in VB6. I'm using Win7-32 bit and having problem with project, This project have writen many year's ago and now I'm recompiling that. When I issue Make xxx.exe command, VB6 starts compilation and freezes and also creates more…
Hossein POURAKBAR
  • 1,073
  • 2
  • 15
  • 33
3
votes
2 answers

How do I disable Symfony from writing _sess files to my /tmp directory

I am new to symfony and am responsible for a site that I didn't build. For some reason the site is on a live server but running in dev mode. - Im not sure why?? That aside - The website keeps writing _sess files to my /tmp directory. The contents of…
Bob Flemming
  • 466
  • 3
  • 9
  • 21
3
votes
2 answers

CakePHP - need URL to route to the tmp directory?

I am trying to create thumbnail pics using GD lib in Cake PHP. I can write the resized thumbnail to the tmp directory, and create the sensible URL to show the image from the tmp directory: //set up empty GD resource $tmp =…
Francois Stark
  • 153
  • 2
  • 10
3
votes
6 answers

Can compilers identify recursion issues in Template Meta programming?

In Template Meta Programming if a recursion is wrongly implemented with a resulting infinite loop, can the language compiler detect it? Or will the compiler just encounter an eventual stack overflow and crashe? My bet would be that compiler cannot…
PermanentGuest
  • 5,213
  • 2
  • 27
  • 36
3
votes
1 answer

C++ template instantiation, what exactly does it mean?

Now, I'm familiar with templates and I'm somewhat familiar with things like SFINAE, and I've been wondering what goes on when a template is instantiated by the compiler. When you do things in TMP, like SFINAE, or even the simple Fibonacci sequence…
Tony The Lion
  • 61,704
  • 67
  • 242
  • 415
2
votes
1 answer

how to list the files in your /tmp folder

I am using an AWS lambda function to download a file to my /tmp folder. try: s3.download_file(source_bucket_name, i, f"/tmp/{original_zip_file_name}") except Exception as e: print('Unable to download S3 file',…
user13067694
2
votes
1 answer

Why mktemp with -u option is stated as unsafe in its manual?

I wanted to create a temporary file and was going through the mktemp manual and found that mktemp with -u option is stated as unsafe, what is the reason behind this ? mktemp --help Usage: mktemp [OPTION]... [TEMPLATE] Create a temporary…