Quantcast

Groovy SFTP

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Groovy SFTP

Martin Gilday
Hi,
I was wondering if there is a Groovy way of working with FTP, especially
SFTP (the SSH one, not SSL).  Are there any nice wrappers over
commons-net etc?

Thanks,
Martin.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Groovy SFTP

Guillaume Laforge
On Thu, Mar 27, 2008 at 8:54 PM, Martin Gilday <[hidden email]> wrote:
> Hi,
>  I was wondering if there is a Groovy way of working with FTP, especially
>  SFTP (the SSH one, not SSL).  Are there any nice wrappers over
>  commons-net etc?

Not that I'm aware of.


--
Guillaume Laforge
Groovy Project Manager
G2One, Inc. Vice-President Technology
http://www.g2one.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Groovy SFTP

Scott Hickey-3
In reply to this post by Martin Gilday
You can use the jsch library at http://www.jcraft.com/jsch/ and ant builder.

url = args[0]
userid = args[1]
password = args[2]

ant = new AntBuilder()

ant.scp(file: "etl_scripts/PurgeTestRun.groovy",
 todir: "${userid}@${url}:/data/${userid}/etl",
        password: "${password}",
  trust:"true")


 
Scott


----- Original Message ----
From: Martin Gilday <[hidden email]>
To: [hidden email]
Sent: Thursday, March 27, 2008 2:54:44 PM
Subject: [groovy-user] Groovy SFTP

Hi,
I was wondering if there is a Groovy way of working with FTP, especially
SFTP (the SSH one, not SSL).  Are there any nice wrappers over
commons-net etc?

Thanks,
Martin.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Groovy SFTP

paulk_asert
In reply to this post by Martin Gilday

Check out PLEAC:

http://pleac.sourceforge.net/pleac_groovy/internetservices.html

Under FTP.

Paul.

Martin Gilday wrote:

> Hi,
> I was wondering if there is a Groovy way of working with FTP, especially
> SFTP (the SSH one, not SSL).  Are there any nice wrappers over
> commons-net etc?
>
> Thanks,
> Martin.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Groovy SFTP

Stephan M. February
In reply to this post by Martin Gilday
Hello

Have a look at jsch - http://www.jcraft.com/jsch/

Regards
Stephan February
Adeptiva Linux Pte Ltd
Co. Reg: 200404633R

----- "Martin Gilday" <[hidden email]> wrote:

> Hi,
> I was wondering if there is a Groovy way of working with FTP,
> especially
> SFTP (the SSH one, not SSL).  Are there any nice wrappers over
> commons-net etc?
>
> Thanks,
> Martin.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Groovy SFTP

Martin Gilday
In reply to this post by Scott Hickey-3
Thanks Scott, it worked well.


----- Original message -----
From: "Scott Hickey" <[hidden email]>
To: [hidden email]
Date: Thu, 27 Mar 2008 13:29:35 -0700 (PDT)
Subject: Re: [groovy-user] Groovy SFTP

You can use the jsch library at http://www.jcraft.com/jsch/ and ant
builder.

url = args[0]
userid = args[1]
password = args[2]

ant = new AntBuilder()

ant.scp(file: "etl_scripts/PurgeTestRun.groovy",
 todir: "${userid}@${url}:/data/${userid}/etl",
        password: "${password}",
  trust:"true")


 
Scott


----- Original Message ----
From: Martin Gilday <[hidden email]>
To: [hidden email]
Sent: Thursday, March 27, 2008 2:54:44 PM
Subject: [groovy-user] Groovy SFTP

Hi,
I was wondering if there is a Groovy way of working with FTP, especially
SFTP (the SSH one, not SSL).  Are there any nice wrappers over
commons-net etc?

Thanks,
Martin.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Loading...