+ channel.disconnect();
+
+ update_notif("Preparing to resize image...");
+
+ channel = s.openChannel("exec");
+ ((ChannelExec)channel).setCommand("pscale /tmp/lol.jpg");
+ channel.connect();
+
+ scp_in = channel.getInputStream();
+
+ update_notif("Resizing image...");
+ while ((len = scp_in.read(buf, 0, buf.length)) > 0)
+ ;
+
+ channel.disconnect();
+ update_notif("Upload complete.");
+