Re: [SLUG] Scripting Question

From: Dylan William Hardison (dylan@hardison.net)
Date: Wed Aug 30 2006 - 10:56:41 EDT


Spake Russ Wright on Tuesday, August 29, 2006 at 09:19AM -0400:
> Hello fellow sluggers!
>
> I have a scripting question. I want to create a script that will create
> symbolic links to a directory structure in another folder. for example:
> I have a whole bunch of folders and php files in a directory
> called /var/codebase I want to create a script the will copy the
> directory structure to /home/something/public_html/ and create symlinks
> to the files in the first directory.
>
> so my questions:
>
> 1. What would be the best language? Perl perhaps?
>
> 2. Is this possible? if so how?
>
> Regards
> Russ
>

I already have such a script, attached.
usage: linkdir from to

e.g. linkdir /var/codebase /home/something/public_html

Oh, and I am currently rewriting this script, as it's a hack, and very
ugly. But this version works. :-)

-- 
"Rise up this morning, smile with the rising sun.
Three little birds, sits by my doorstep. Singing sweet
songs, of melodies pure and true."
              -- Bob Marley, "Three Little Birds" (song)
-
GPG Fingerprint: E3CD FDAB 82C4 14FD 7B57  430B 770E 0EAF FB53 12C2


----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 16:18:26 EDT