tmp

set directory of tmpfile() on Linux

A program I use is failing when it uses tmpfile() for large files. The problem seems to be I don't have permission to create large files in /tmp, which this function uses by default. So is there a way, perhaps with an environmental variable, that I can make tmpfile() write to a different location? Edit: the program in question is sox, w...

Move File from /tmp to hosting account folder

I have write access to /tmp folder of my shared hosting account at godaddy. I want to move uploaded pictures from /tmp folder to my hosting account folder /home/content/x/y/z/xyz/html/pic/ I am trying to move file through jsp with no success. Folder permissions are set to (read write execute 0777). Godaddy support insists that transfer o...

boost::spirit composing grammars from grammars

I have figured out how to use spirit -- i.e., I have written a moderately complex grammar. I always take the approach of growing a program -- one subsystem at a time. I've written the data structures for a complex model which has 4 types at the highest level. I would like to use the grammar composed from rules approach to parse the top...

What happened to the TMP environment variable?

I always heard that the proper way to find the temporary folder on a UNIX machine was to look at the TMP environment variable. When writing code that worked on Windows as well as Linux, I would check for TEMP and TMP. Today, I discovered that my Ubuntu install does not have that environment variable at all. I know it seems you can alw...

Tmp issues with java service on windows 2008 service

Hello! I am having a rather nasty problem with windows 2008 server. We have a java application that is running as a service using the local services user. The problem is this user does not have access to read/write to the specified java tmp directory (specified by the system). This means that every time the application tries to create a...

iPhone SDK Get tmp directory

How do i get the tmp directory on the iPhone or iPad? if i use NSTemporaryDirectory() to create a file it does not save to the simulator temp directory. ...

File Upload Failing Mysteriously in CakePHP

I'm trying to upload a file to my server using the CakePHP file upload form helper. I am currently running CakePHP 1.3 on my development computer (Mac OSX). When the form submits, it has in the variables that are passed to the controller its temp name: /var/tmp/name and then its name as the name of the file. However, when I try to rename...

Saving session data securely in PHP

I was trying to understand how sessions work in PHP and found that session data is by default stored in the file system. In a shared hosting environment, session data can be read by PHP scripts written by any user. How can this be prevented ? ...

when CreateDirectory returns ERROR_ACCESS_DENIED and "shouldn't"

My Win32 app A1 (actually a collection of processes) is trying to use CreateDirectory to create a directory D1 within parent directory P. The path to P is the value of the TMP environment variable, which makes P a potentially busy but generally permissive place. The vast majority of the time, everything works fine, but, rarely, CreateDir...

Is it ok to rely on the writeability of /tmp folder?

Is it ok to assume /tmp folder writable by PHP/Apache on any unix system? I'm making a script and want to save cache in the tmp folder and want to know whether that can cause problems. ...