Starting from the top: Is this going to run on one machine that serves multiple domains? Or is it supposed to telnet to a server, tar everything up and return a tarball? Or are you trying to connect to someone else's website and download their code?

Next, why are you doing this? Are you trying to create a backup? For that, you'd be better off having everyone use cvs and setting up a tape archiving system.

Last, try putting a little thought into it yourself. CPAN and Perlmonks' Code Catacombs are full of code that address these issues. Morover, even if you want to use system calls instead of modules for the tarring and copying, this is a really basic script. Somehow, I get the feeling that this is a homework assignment. Take a stab at writing it yourself, and if you run into a specific problem, I'll be glad to help.

-Logan
"What do I want? I'm an American. I want more."


In reply to Re: Need a script for command line by logan
in thread Need a script for command line by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.