This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Rust Web Development and have Bastian Gruber on-line!
See this thread for details.
Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

SFTP with Javascript

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
 
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Bloo Barton
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic