One-time use files/links


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers One-time use files/links
# 1  
Old 01-08-2007
Question One-time use files/links

Im in the process of developing a content based website in which people will be able to upload movies(which are then converted to flv format and displayed in a flash based player.) In order to protect the submitted content I would like to setup an offsite folder for the videos and create symbolic/hard links to the files only when in use.

My question:
Is there a way to create a file, symbolic link, hard link... that destroys itself after it has been used?

(In other words I want the script to create this file then once the player initiates the download I want all further attempts to download the video to be rejected. In other words the file can only be accessed via the given video script.)

Site information that might be important:
PHP 4
MySQL
ffmpeg is used to convert the submitted video
Debian GNU/Linux
I do NOT have root access on the server(I was able to get ffmpeg to install to a local directory)
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Disk usage with links pointing to files on same FS

I want count size of all directories on my current File System including size of links only if the target of these links is on same filesystem. I tried below but it gives size of link target even if its on a different FS: du -skL * also the -x option did not help. Any help. (2 Replies)
Discussion started by: pratikgupta123
2 Replies

2. UNIX for Advanced & Expert Users

copy original files from links

I have folder ABC and files in ABC are links. I want to create the same ABC folder in different path and copy the actual files from source ABC dir. Can anyone provide HP-UX command for this? note: cp -L is not working in HP-UX Thanks in advance. (1 Reply)
Discussion started by: venkatababu
1 Replies

3. AIX

List all the soft links and hard links

Hi I'm logged in as root in an aix box Which command will list all the soft links and hard links present in the server ? (2 Replies)
Discussion started by: newtoaixos
2 Replies

4. Shell Programming and Scripting

Links, using environment variables, with the same name, for all users at the same time

Hi all! I have the following problem: I want to create a symbolic link at the root: /a which points to the folder: /b/MyFiles It's simple, but here comes the troubling part. If I log in with an other user at the same time, I would like to see the following under a: /b/HisFiles so... (1 Reply)
Discussion started by: Emri Balázs
1 Replies

5. Solaris

Hard Links and Soft or Sym links

When loooking at files in a directory using ls, how can I tell if I have a hard link or soft link? (11 Replies)
Discussion started by: Harleyrci
11 Replies

6. Shell Programming and Scripting

delete links along with the files

Hi, I am new to unix I am removing some unwanted files from the directory by using the following command find . -name "*" -exec rm -f {} \; But i want the corresponding links also to be removed can one help me Thanks (1 Reply)
Discussion started by: Satyak
1 Replies

7. Filesystems, Disks and Memory

change created and modification time if symbolic links

Hi, I am trying to duplicate a symbolic link, the new link should be the exact replica of the original one, with same file attributes, permissions, owner, group and even the time. i m successful in changing the owner and group, but when i try to change the time using utime, the time of the... (1 Reply)
Discussion started by: avanigadhai
1 Replies

8. UNIX for Dummies Questions & Answers

download files from direct links tool?

Hello all I wander of there is small utility that gives me the possibility to download direct links to specific folder say if i have http://www.blah.com/foo.java and I like to download the foo.java without opening the browser and such... (2 Replies)
Discussion started by: umen
2 Replies
Login or Register to Ask a Question
gravitation(6)							       Games							    gravitation(6)

NAME
gravitation - a game about mania, melancholia, and the creative process. SYNOPSIS
gravitation DESCRIPTION
Gravitation is a video game written by Jason Rohrer about the creative process and the interaction between the creative process and life. Gravitation is an art game. As a result, some people love it and some people hate it. Check out the links to places it has been discussed on the website for some of the reactions. The mechanics of the game are fairly simple. Your "score" is related to the amount of "projects" you complete. To complete a project, first you need to discover and idea. In the game ideas are represented by blue stars and located in the maze above your initial position. To get to the maze, you can either wait till you feel inspired to jump that far, or you can play with your daughter and be inspired more quickly. Once you find an idea, it will fall to earth (so to speak), and you now need to "complete" the project by pushing the fallen star (now a white cube) into the fireplace. The game mechanics allow for myriad situations and exploring them can be an interesting experience. The most interesting part about this game is the emotions it evokes within the player of the game. The ultra-low-res pixel art helps here, by not being too distracting and by leaving plenty room for viewer interpretation. Gravitation is the follow-up to Passage, another art game by Jason Rohrer. USAGE
Gravitation has no command-line options. The left and right arrow keys move left and right. The spacebar is used to jump. Hold for higher jumps. The Esc key is used to quit the game. The game resolution and use of fullscreen or a window can be set by editing the files in /etc/gravitation. SEE ALSO
The website and discussion: http://hcsoftware.sourceforge.net/gravitation/ The game creators statement: http://hcsoftware.sourceforge.net/gravitation/statement.html March 2008 gravitation(6)