hdd1, hdd2 and hdd3 are three separate partitions on the same physical disk drive (hdd). Either you want the contents separate, in which case why do you want them directly under movies? Or you want the contents together (under movies) in which case why don't you just have a single partition? Now I could understand if you actually had 3 separate HDDs because your movies are too big for just the one, which I thought was the case, in which case I was going to suggest you look into Logical Volume Management (LVM) which lets you treat multiple HDDs as if there was one big partition. Perhaps if you describe your situation more fully - what you have and what you want to do - then we could help you out.
Now if you're really set on this method, there are multiple ways to do it. Probably the easiest is to periodically run that script, so there's only a short delay until the symlink is created (though I'd use the more safe "unlink" command rather than "rm") - to do this type "crontab -e" and type in the following line:
Code: Select all
*/30 * * * * /home/xxx/movie_script
where /home/xxx/movie_script is the *full* path to your script and 30 is the length of time in minutes between running the script (smaller will make it appear faster, but will also take up more system resources and potentially make it more difficult to actually access the files (since you're removing the symlinks before re-instating them). Alternatively you could look into programming with inotify.
If you have a question that has been answered and solved, then please edit your original post and put a [SOLVED] at the end of your subject header
Hint - use a google search including the search term site:forums.linuxmint.com