Koen - That was super helpful. Thanks to some Google-fu I was able to find out some instructions on making SFTP batch files and how to run them from terminal commands, your examples of the commands I would want specifically will make it all so much easier.
Thank you, JJ > On Sep 14, 2017, at 12:00 PM, 4d_tech-requ...@lists.4d.com wrote: > > > Message: 5 > Date: Thu, 14 Sep 2017 11:36:56 +0200 > From: Koen Van Hooreweghe <bvbacomp...@telenet.be > <mailto:bvbacomp...@telenet.be>> > To: 4D iNug Technical <4d_tech@lists.4d.com <mailto:4d_tech@lists.4d.com>> > Subject: Re: SFTP - Native to 4D? > Message-ID: <73045613-3643-403c-9ac3-37c845c0c...@telenet.be > <mailto:73045613-3643-403c-9ac3-37c845c0c...@telenet.be>> > Content-Type: text/plain; charset=utf-8 > > Hi Janet, > > As others has mentioned, there is no native sftp client (yet?) in 4D. On Mac > I’m using the OS built in sftp command which is called using LAUNCH EXTERNAL > PROCESS. > For my purpose, I create a ‘batch’ file which contains the necessary sftp > commands and then run it with sftp. > > Eg. a possible content of the batch file could be: > cd /mydir > ls -1 > > Set the directory to mydir and get the directory listing. Keep in mind this > is Unix, you must separate the lines with line feeds. > > Then the command is like: > sftp -b ‘pathToBatchFileInPosixFormat’ -i ‘pathToIdentityFileInPosix’ > -oPort=9999 username@serveraddress > > pathToIdentityFileInPosix is the path to the rsa file containing your key. > This file is normally stored in your home folder in a .ssh directory: > /Users/yourname/.ssh > You can use eg System folder(Desktop) to get the path to your home folder. > Just toss out the last part of the path. > > The fun with this is you can setup and test first in terminal and when all is > working as expected, move to 4D. > > HTH > Koen > >> Op 13 sep. 2017, om 17:27 heeft Janet Jonas via 4D_Tech >> <4d_tech@lists.4d.com <mailto:4d_tech@lists.4d.com>> het volgende geschreven: >> >> Does 4D have any native capability to do SFTP file transfers and/or generate >> a SSH-2 RSA public and private key pair? >> >> Any pointers would be welcome. > > ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************