[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: I have a question concerning SFTP
If you use the AIX SFTP client it uses the BSD syntax. -P is the path on
the server. Use this man page for options:
http://unixhelp.ed.ac.uk/CGI/man-cgi?sftp
And here is an example from one of our programs.
Buffer = '#!/usr/local/bin/expect -f' + LF;
Callp write(FD:%addr(Buffer): %Len(%Trim(Buffer)));
Buffer = 'spawn sftp -oPort=9002 ' + %Trim(ctecid) + '@'
+ %Trim(ctecsi) + '@67.136.124.49' + LF;
Callp write(FD:%addr(Buffer): %Len(%Trim(Buffer)));
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of John McKee
Sent: Tuesday, September 04, 2012 10:40 AM
To: HTTPAPI and FTPAPI Projects
Subject: Re: I have a question concerning SFTP
Not sure if this works. With Linux, use -P and a port number. May work
on
the i as well.
John McKee
On Tue, Sep 4, 2012 at 9:58 AM, Ha, William <William.Ha@xxxxxxxx> wrote:
> Hi All,
>
>
> I know that this is out of subject but I am sure someone can answer
me
> and I thank you in advance. I want to know how to force the SFTP to
use
> a specific Port number when I am running the command QSH CMD(SFTP
-b
> .... ) through Batch CLLE on the Iseries.
>
>
> William Ha
>
>
Kevin Bucknum
Senior Programmer Analyst
MEDDATA/MEDTRON
Tel: 985-893-2550
-----------------------------------------------------------------------
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
>
-----------------------------------------------------------------------
>
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------