This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes SFTP with Javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "SFTP with Javascript" Watch "SFTP with Javascript" New topic
Author

SFTP with Javascript

Bloo Barton
Ranch Hand

Joined: May 09, 2005
Posts: 63
Does anyone know of a Javascript library that will allow me to send files over SFTP directly from within a Javascript.

This is for a client utility written in Javascript. I am not trying to do this from within a browser...
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35253
    
    7
JavaScript does not have any networking facilities. Those are part of the browser, so if you run JS outside a browser, you can't do this. Unless, of course, you're using Rhino (a JS engine implemented in Java), which has access to Java classes. Then you can use a library like Commons Net to perform the networking operations. But that wouldn't be the same as doing it in JS.


Android appsImageJ pluginsJava web charts
Bloo Barton
Ranch Hand

Joined: May 09, 2005
Posts: 63
Ok, I thought I would try another method to accomplish what I need. FileZilla can be used from the command line so I could submit the files over FTP via FileZilla. For this I will need to be able to pass parameters to a command line program from Javascript. I have tried using the WshShell.AppActivate method and the WshShell.Exec method. I am able to run a command line program
with either of those, but am not able to pass in parameters so it is
essentially useless.

An example as simple as how to run something like "ping -t google.com"
would be great.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: SFTP with Javascript
 
Similar Threads
sftp
Upload/download files to/from SFTP server
"Unterminated <c:out tag" Error
can not read file
Suggestion for SFTP from client side applet