TclCurl SFTP connections.

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf TclCurl SFTP connections.

  • Creator
    Topic
  • #49990
    John Hamilton
    Participant

      Is anyone using a UPOC to bring down or send via SFTP using TclCurl.

      I have not used TclCurl yet from what I can tell it will support this activity.

      But I was just curious as to if anyone has done this and would be willing to share that UPOC.

    Viewing 9 reply threads
    • Author
      Replies
      • #64404
        John Hamilton
        Participant

          One more thing.

          If anyone has any good book or webpage they like on TclCurl that would be appreciated as well.

          I have found way to many web pages and most of them all deal with HTTP: stuff. Very little I have found so far on just doing a simple FTP SFTP kind of thing.

        • #64405
          Robert Milfajt
          Participant

            Here is a good TCLCurl link for documentation.  There is an example of FTP too.

            http://personal1.iddeo.es/andresgarci/tclcurl/english/docs.html#lbAM

            Just google TCLCurl and SFTP and you should be able to get some answers.

            I did a terse search and found that SFTP is supported and that you need SSH libraries.  You will need to figure out what all this means, but it should be a start.  One other person warned that SFTP is not FTPS, so beware.

            Hope this helps,

            Robert Milfajt
            Northwestern Medicine
            Chicago, IL

          • #64406
            garry r fisher
            Participant

              Hi,

              I managed to get a SFTP connection but couldn’t get any further because I didn’t have the right libraries for SSH etc – This was on Windows. So yes it does work if you can get all the necessary libraries installed.

              I just replaced the HTTP call with SFTP and added a few more SSH parameters in – See the Curl/TclCurl documentation for thses. I’ll check to see if I still have my test code but I don’t think I kept it. See below.

              On Windows I used WinSCP and called a SFTP script from Tcl. This works fine for me.

              Regards

              Garry

            • #64407

              I’ve been using WinSCP for years and can speak highly of it. Very nice app.

              -- Max Drown (Infor)

            • #64408
              garry r fisher
              Participant

                John,

                If you download the full TclCurl package from the TclCurl site there are example files included – I used the FTP examples as my templates and got a part working script.

                Hope this helps.

                Garry

              • #64409
                John Hamilton
                Participant

                  Thnaks for the input.

                  I will do that.

                  My hope is I will get a script that will be generic enough to use for several differnt download type from several vendors.

                  I am in the process of automating several operations activities via this process. I will post the script when done in the tcl library here.

                • #64410
                  John Hamilton
                  Participant

                    For those of you that care or are intrested in this.

                    The currently supplied version of TclCurl with cloverleaf 5.5. does not support SFTP it does support FTPS. I have not confirmed yet if the next version 5.6 comes with the version of curl that supports SFTP or not.

                  • #64411
                    Jim Kosloskey
                    Participant

                      John,

                      I do not want to speak for Healthvision but everything I have seen and heard is that Cloverleaf(R) will support FTPS not SFTP. I think that is true for 5.6. At the Regional User Conference last week in Indianapolis, I do not recall any mention of support for SFTP.

                      I do not know if that extends to the TclCurl extension included with Cloverleaf(R).

                      Jim Kosloskey

                      email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

                    • #64412
                      garry r fisher
                      Participant

                        Jim,

                        The full TclCURL package does support SFTP but for me as a Windows user I didn’t have all the supporting libraries available to me (SSH etc) in a usable form but I did manage to establish a connection. On a *nix system where the libraries may already be built in or readily available I would have thought an SFTP script could be written using TclCUrl.

                        John – I’d be interested to hear how successful you are with this.

                        Regards

                        Garry

                      • #64413
                        Rob Abbott
                        Keymaster

                          Just to add my $0.02 – I have not been able to get SFTP to work with cURL/TclCurl (any version).  It claims support but I just could not get it to work.  I tried for a couple hours and gave up.  This is on a Windows platform.

                          I ended up using WinSCP which works quite well.  I was able to call a WinSCP script from a protocol UPoC.

                          If anyone is able to get this to work I would be interested to hear.

                          Please note we provide cURL/TclCurl as a convenience and do not claim to support all of it’s features (exceptions are built-in drivers such as FTPS which uses cURL under the covers).  I have used the TclCurl HTTP client functionality extensively, it’s pretty bulletproof in my opinion.

                          Rob Abbott
                          Cloverleaf Emeritus

                      Viewing 9 reply threads
                      • The forum ‘Cloverleaf’ is closed to new topics and replies.