here's my problem:
i want to limit access to an FTP server for certain users, but the server admin will not let me set up more than one account. so, i'm trying to restrict access with a perl program, specifically a CGI script. first question: does this sound possible?

now, i want to keep one connection to the server open throughout the whole process, but i'm going to have to either re-run the same script a couple of times, or run more than one script to do the user interface. it doesn't seem like i can keep the connection open if i stop the script and start a new one. heres my idea: i run some sort of umbrella script that opens the connection, works with the FTP server and then closes it, and another set of scripts that deals with user interface which will send commands to the umbrella script. second question: does this sound possible?

thanks for any help. i'm open to suggestions... even comments that i'm a fool.

In reply to advice about FTP/CGI by jlistf

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.