----- Forwarded message from [EMAIL PROTECTED] -----
>From [EMAIL PROTECTED]  Wed Jun 13 12:01:19 2001
Received: from smtp.rcsis.com (smtp.rcsis.com [208.45.228.18])
        by franz.mother.com (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id MAA31281
        for <[EMAIL PROTECTED]>; Wed, 13 Jun 2001 12:01:19 -0700
Received: from tina---bob (036.dsl7837.surewest.net [63.78.37.36])
        by smtp.rcsis.com (8.9.3/8.9.3) with SMTP id LAA30583
        for <[EMAIL PROTECTED]>; Wed, 13 Jun 2001 11:52:22 -0700
Message-Id: <[EMAIL PROTECTED]>
Date: Wed, 13 Jun 2001 12:10:54 -0800
From: Jeff Lambert <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Subject: Re: Re: [vox-tech] FTPing in a script
Organization: Webc0der.Net
X-mailer: FoxMail 2.1 [en]
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

At 6/13/2001 10:31:00 AM, you wrote:
>i did this, but it was a LOOOONG time ago, and it was on a sunos machine.
>this was before linux ever existed, in fact.  i did use a here file, btw.
>
>check out expect; you can use it either with perl or tcl.  if you don't know
>perl, this would be a good excuse to learn it.  :-)
>
>pete
>

if you happen to have PHP on that machine this may be an easier solution

<?
//connect
if(!($ftp = ftp_connect("localhost")))
{
        print("Unable to connect!\n");
        exit();
}

//login
if(!(ftp_login($ftp, "username", "password"))
{
        print("Unable to login!\n");
        exit();
}

//save_file
ftp_get($ftp, "/path/to/store/file", "/path/where/file/is", FTP_ASCII);

//close_the_connection
ftp_quit($ftp);
?>

hope this helps
- Jeff Lambert
  Web Developer/Programmer
--------------------------------------------------
Webc0der.Net
http://www.webc0der.net
Custom web applicatioins built to serve your needs
--------------------------------------------------


----- End forwarded message -----

-- 
"The following addresses had permanent fatal errors..."      [EMAIL PROTECTED]
                               -- Mailer Daemon              www.dirac.org/p

Reply via email to