<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>daniel shiffman &#187; sftp</title>
	<atom:link href="http://www.shiffman.net/category/sftp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shiffman.net</link>
	<description></description>
	<lastBuildDate>Wed, 01 Sep 2010 02:44:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Sftp with Java / Processing</title>
		<link>http://www.shiffman.net/2007/06/04/sftp-with-java-processing/</link>
		<comments>http://www.shiffman.net/2007/06/04/sftp-with-java-processing/#comments</comments>
		<pubDate>Mon, 04 Jun 2007 20:29:22 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[p5]]></category>
		<category><![CDATA[processing.org]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[sftp]]></category>

		<guid isPermaLink="false">http://www.shiffman.net/2007/06/04/sftp-with-java-processing/</guid>
		<description><![CDATA[I know, I know, you&#8217;ve been waiting your whole life for this. Download beta SFTP Processing library (source included in zip). Download example Processing sketch. The library uses JSch (Java Secure Channel). Copyright (c) 2002,2003,2004,2005,2006,2007 Atsuhiko Yamanaka, JCraft, Inc. import sftp.*; Sftp sftp; void setup() { size(200,200); background(0); // Create the SFTP object // if [...]]]></description>
			<content:encoded><![CDATA[<p>I know, I know, you&#8217;ve been waiting your whole life for this.</p>
<p><a href="http://www.shiffman.net/p5/sftp/sftp.zip">Download beta SFTP Processing library</a> (source included in zip).</p>
<p><a href="http://www.shiffman.net/p5/sftp/sftp_test.zip">Download example Processing sketch</a>.</p>
<p>The library uses <a href="http://www.jcraft.com/jsch/">JSch (Java Secure Channel)</a>.<br />
Copyright (c) 2002,2003,2004,2005,2006,2007 Atsuhiko Yamanaka, JCraft, Inc.</p>
<pre>
import sftp.*;

Sftp sftp;

void setup() {
  size(200,200);
  background(0);
  // Create the SFTP object
  // if 3rd arg = false, you must set the password in your code
  // if 3rd arg = true, you will be prompted to enter your password
  sftp = new Sftp("www.hostname.com","login", true);
  // sftp.setPassword("XXXXXX");
  sftp.start(); // start the thread
  noLoop();
}

void mousePressed() {
  // At any point you can execute an SFTP command
  // Not all commands are currently implemented
  // but you do have "ls" and "get"
  // Gosh, I should implement "put", sorry!
  sftp.executeCommand("ls");
  sftp.executeCommand("get file.txt");
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.shiffman.net/2007/06/04/sftp-with-java-processing/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
