SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Secure FTP Statements

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Secure FTP Statements
Author Message
Michael Tuszynski



Joined: 07 May 2004
Posts: 30

Post Secure FTP Statements Reply with quote

I am trying to write a script to go through a secure FTP gateway. After connecting
to the gateway, I am prompted for username, password, then account. How can I do
this with using the built in FTP function (FTPGetFile, etc.)

Ex: (this is what I would do to login manually)

ftp ftp-gateway.server.com
220 Ready
User: userOne@host.serverTwo.com remoteAcctName
331 Password required for destination user 'userOne'
Password: userOnePassword
332 Enter Password (use the 'account ' or 'quote acct ' command to r
espond): remoteAcctPassword

where user/pass pairs are:
userOne@host.serverTwo.com / userOnePassword
remoteAcctName / remoteAcctPassword

Thanks.


Wed May 12, 2004 11:08 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7955

Post Re: Secure FTP Statements Reply with quote

Are using FTPConfig( "FTP PROTOCOL", "SECURE" ) ?

Can you post your script here (replacing username and password with asterisks)?

: I am trying to write a script to go through a secure FTP gateway. After
: connecting
: to the gateway, I am prompted for username, password, then account. How can I
: do
: this with using the built in FTP function (FTPGetFile, etc.)

: Ex: (this is what I would do to login manually)

: ftp ftp-gateway.server.com
: 220 Ready
: User: userOne@host.serverTwo.com remoteAcctName
: 331 Password required for destination user 'userOne'
: Password: userOnePassword
: 332 Enter Password (use the 'account ' or 'quote acct ' command to r
: espond): remoteAcctPassword

: where user/pass pairs are: userOne@host.serverTwo.com / userOnePassword
: remoteAcctName / remoteAcctPassword

: Thanks.

Wed May 12, 2004 12:20 pm View user's profile Send private message
Michael Tuszynski



Joined: 07 May 2004
Posts: 30

Post Re: Secure FTP Statements Reply with quote

I am using the FTPConfig statement. My question is, how do I pass in the two sets
of credentials to the FTPGetFile statement?

: Are using FTPConfig( "FTP PROTOCOL", "SECURE" ) ?

: Can you post your script here (replacing username and password with
: asterisks)?

Wed May 12, 2004 12:22 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7955

Post Re: Secure FTP Statements Reply with quote

I am not sure I understand what you mean by "the two sets of credentials."
All FTP statements support only single command/session per call.

If you use secure shell (see Telnet statements) you can run multiple commands in a single session and send arbitrary responses to the server. Don't know if this can help you in any way.

: I am using the FTPConfig statement. My question is, how do I pass in the two
: sets
: of credentials to the FTPGetFile statement?

Wed May 12, 2004 12:30 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.