Hi Mark,

 

This simple ckermit script receives several values as parameters (ip, port, 
user, etc.), it basically uploads the contents of a local directory, it will 
use TLS:

 

#!/usr/bin/kermit +

 

  SET FTP VERBOSE-MODE ON

  SET FTP AUTHTYPE TLS

  SET AUTH TLS CERTS-OK

  SET FTP AUTOAUTHENTICATION OFF

 

  SET TRANSACTION-LOG BRIEF

  LOG TRANSACTIONS /var/kermit_ftp.log APPEND

 

  .ip         := \fcontents(\%1)

  .port       := \fcontents(\%2)

  .user       := \fcontents(\%3)

  .password   := \fcontents(\%4)

  .ldirectory := \fcontents(\%5)

  .rdirectory := \fcontents(\%6)

 

  ftp open \%1 \%2 /user:\%3 /password:\%4

  if fail exit 1 \%1: Connection failed

  if not \v(ftp_loggedin) exit 1 Login failed

 

  lcd \m(ldirectory)

  if fail exit 1 lcd: \v(errstring)

 

  ftp cd \m(rdirectory)               ; CD to desired server directory

  if fail exit 1 cd: \v(errstring)

 

  ftp mput /delete *

  if fail exit 1 ftp mput *: \v(ftp_message)

 

  ftp bye

 

  close transaction-log               ; Close log

  exit

 

 

 

Jose

 

-----Original Message-----
From: Mark Post [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 28, 2007 2:48 PM
To: [email protected]
Subject: Re: FTPS (FTP over SSL) Package for SLES9

 

>>> On Tue, Aug 28, 2007 at  2:30 PM, in message

<[EMAIL PROTECTED]>, José

L.

Ramírez <[EMAIL PROTECTED]> wrote: 

> Opps, sorry, I didn't notice that what Douglas needs is an FTP SSL

client.

>  

> Based on that I think that the ckermit package that comes with SLES9

will 

> help you. We currently use the package to automatically download

files from a 

> FTP/SSL site. It provides lots of scripting capabilities... if you

need some 

> scripts examples just let me know...

 

I don't know if Douglas needs some script samples, but I would like to

see a few small ones, particularly how the SSL/TLS aspect gets invoked

within an FTP session.

 

 

Mark Post

 

----------------------------------------------------------------------

For LINUX-390 subscribe / signoff / archive access instructions,

send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit

http://www.marist.edu/htbin/wlvindex?LINUX-390

 

 

Scanned by McAfee SCM1



Scanned by Triple-S SCM1

-----------------------------------------
*************************Attention*************************
This electronic message, including any attachments, contains
information that may be legally confidential and/or privileged. The
information is intended solely for the individual or entity named
above and access by anyone else is unauthorized. If you are not the
intended recipient, any disclosure, copying, distribution, or use
of the contents of this information is prohibited and may be
unlawful. If you have received this electronic transmission in
error, please reply immediately to the sender that you have
received the message in error and delete it from your system.

Reply via email to