04-14-2009
Creating links to multiple folders
Hi All,
First of all, I'm a unix newbie so don't be to hard on me
I'm not even sure if the thing that I want is even possible but here goes nothing:
On my linux based NAS I have the following structure:
videos
|---movie 1
|---movie 2
|---movie 3
|
USBDISK
|---videos
|--- movie 4
|--- movie 5
No I would really like, when I list "/videos" to show everything thats in the "/videos" folder PLUS everything that's in the "/USBDISK/videos" folder. No I'm kind of hoping that can be arranged with one soft link creation, but I don't think that's really possible. Another option would be to create a cronjob (I googled that term
) which looks at "/USBDISK/videos" every hour or so and will create a symbolic link for each and every movie that's not linked to "/videos" at that point. But I don't know if that's possible either... and if it is I have NO clue how to.
I hope my question is a little clear and that someone can help me... if not... thanks for reading that kind of noob question!
Regards,
Kees.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hii...
I want to list folders (no files and no symbolic links)..
But my
is giving me error..
please help...
Esham (7 Replies)
Discussion started by: esham
7 Replies
2. Shell Programming and Scripting
I want to make a symbolic link to a set of files in a particular directory if they exist. The number of files in the set is not known. The following script fails because it is ambigious.
if(-f dir1/*.a) then
ln -s dir1/*.a dir2/
endif
Can anyone help me?
Thanks a lot. (1 Reply)
Discussion started by: Deanne
1 Replies
3. Solaris
Hi,
I have a quick question with regards to creating symbolic links. Would creating a symbolic link from one directory to a file in another cause any issues for users that are currently logged into the box. I don't believe it will unless they are using the file in question, but I would like... (2 Replies)
Discussion started by: Chains
2 Replies
4. Shell Programming and Scripting
hi,
How do i create a tar file of a directory excluding the links in that particular directory and its sub-directories.
The below command doesnt work for me.
tar -cvf abc.tar /dir1 --exclude"^l" (1 Reply)
Discussion started by: yesmani
1 Replies
5. Programming
i'm trying to write a c code to copy a soft link over to a specified directory. Is it possible to do this without using symlink()?
if so, what can I use?
Thanks! (2 Replies)
Discussion started by: l flipboi l
2 Replies
6. IP Networking
Hi all,
I am working on a project where I need to access four random machines from a given subnet mask and sending files across the machines similar to peer to peer file systems. Now my question is. Given a subnet mask or If I obtain a random IP address of a machine from Subnet mask, how can I... (4 Replies)
Discussion started by: Pavan Kumar
4 Replies
7. Shell Programming and Scripting
Hello,
Greetings!
please help me produce the following solution. I need
to produce one big matrix file from several files in different levels.
If it helps, the index folder provides information on chromosome index and
the data folder provides information on values for chromosomes.
there... (8 Replies)
Discussion started by: newbie83
8 Replies
8. Shell Programming and Scripting
Hi,
I have all my pictures as *.JPG and *.CR2 in the following folder structure:
/media/a_2TB/pictures/year/year-month-day-hour/picture*.*
But sometimes I added a subdirectory -->
/media/a_2TB/pictures/year/year-month-day-hour/suba/picture*.*... (3 Replies)
Discussion started by: 8200
3 Replies
9. Shell Programming and Scripting
Hello, im trying to create folders from text file and i get errors :(
#!/bin/bash
awk 'BEGIN { RS = "/" } ; { mkdir $1, mkdir $2, mkdir $3, mkdir $4, mkdir $5}' zodziai.txt
im new in linux stuff just trying to learn. The idea is i want to create new folders from words in text file. I... (4 Replies)
Discussion started by: boxstep
4 Replies
10. UNIX for Dummies Questions & Answers
Hi I've been trying to find an answer to this question and was hoping someone would be able to help me.
I want to add a sub-folder to to an existing structure: for example
/toys/toy_1/new
/toys/toy_2/new
/toys/toy_3/new
There are humdreds of theses folders - what i want to do is add a... (2 Replies)
Discussion started by: LouSan
2 Replies
LEARN ABOUT DEBIAN
gif2swf
gif2swf(1) swftools gif2swf(1)
NAME
gif2swf - Takes a number of gif files and converts them to a swf movie, one picture per frame.
Synopsis
gif2swf [-X width] [-Y height] [-o file.swf] [-r rate] file1.gif [file2.gif ...]
DESCRIPTION
This tools converts gif image files into an SWF animation. It takes any number of input pictures, and converts them to SWF one-by-one,
where every converted picture is a separate frame in the target SWF.
OPTIONS
-r, --rate framerate
Set movie framerate (frames per second)
-o, --output filename
Explicitly specify output file. (Otherwise, output will go to stdout / output.swf)
-z, --zlib zlib
Use Flash MX (SWF 6) Zlib encoding for the output. The resulting SWF will be
smaller, but not playable in Flash Plugins of Version 5 and below.
-l, --loop loop count
Set loop count. (default: 0 [=infinite loop])
-X, --pixel width
Force movie width to width (default: autodetect)
-Y, --pixel height
Force movie height to height (default: autodetect)
-v, --verbose level
Set verbose level (0=quiet, 1=default, 2=debug)
-C, --cgi
For use as CGI- prepend http header, write to stdout
-V, --version
Print version information and exit
gif2swf February 2012 gif2swf(1)