Thank you all very much for your responses.  I find your use of the
Connection utility interesting.  I guess I haven't looked to use it because
I'm just a scripting kind of guy.  But I see that this would be valuable
when dealing with multiple users and/or multiple scripts.
 
Jim DuWaldt
MIS Coordinator
phone: (714) 224-7916

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jennifer Edwards
Sent: Tuesday, September 16, 2008 11:55 AM
To: WSFTP_Forum@list.ipswitch.com
Cc: Jim Crissman; Dwayne Phillips
Subject: RE: [WS_FTP Forum] Using sftp with scripting



Hi  Jim,

 

I have several sftp trading partners I connect with every day, first I just
define the account in wsftp and call "wsftpscrpt.com" calling the command
file. We use Shared Sites because of the many users in our department. below
is a scrubbed example of a script (.scp) file we pull from an sftp site
with, you can use the PUT and MPUT commands as well:

 

LABEL START

TRACE SCREEN

LOG C:\Logs\WSFTP_Logs\our-Log.txt

ONERROR GOTO ERROR

CONNECT Shared_Sites!Defined_Site_Name - note: you can drop the
"SHARED_SITES!" part if you do not use them in your implemation 

CD the_hosts_directory

LCD C:\the_local_directory

MGET *.*

MDELETE *.*

LCD C:\some_other_local_directory

CD ../another_remote_dir

MGET *.*

MDELETE *.*

GOTO EXIT

LABEL ERROR

LABEL EXIT

CLOSE

 

We have no issues once the site has been defined as an sftp site within the
wsftp pro product, the way we call it is: 

C:\Program Files\Ipswitch\WS_FTP Professional\ftpscrpt.com -f
C:\WSFTP\WSFTP_Scripts\the_above_script_name.scp

 

Also note in your message you are calling ftpscrpt.exe, we use ftpscrpt.com
as the program to execute our script (.scp) file.

 

Do not worry about the delete, if the get fails the error trap will send it
around the delete and you can re-connect and fetch your stuff later, you can
invert this and do a local delete if you so desire on a push if you need to
clean up after yourself from the script.

 

Hope this helps a little,

Jen

 

 

Jennifer Edwards

EDI Technical Lead

 

(301) 280-4622 (direct line)

(240) 274-7065 (cell)

 <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]

 <http://www.hanger.com/> www.hanger.com

 Συν ται η επι ται or Ή ταν ή επί τας

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jim DuWaldt
Sent: Tuesday, September 16, 2008 2:36 PM
To: wsftp_forum@list.ipswitch.com
Cc: 'Jim Crissman'; 'Dwayne Phillips'
Subject: [WS_FTP Forum] Using sftp with scripting

 

Folks, 

We can use the scripting command 'AUTH SSL User 1' for connecting to ftps
servers running from ftpscrpt.exe.  Unfortunately this cannot be used for
connecting to sftp.  I have not been able to discover a script command for
using SSH; does anyone know how to do this?

Jim DuWaldt 
MIS Coordinator 
Freight Management Inc 
phone: (714) 224-7916 
fax: (714) 632-7366 

Reply via email to