Skip to content

Instantly share code, notes, and snippets.

@w33ble
Created January 29, 2013 21:17
Show Gist options
  • Save w33ble/4667960 to your computer and use it in GitHub Desktop.
Save w33ble/4667960 to your computer and use it in GitHub Desktop.
lftp with node's child_process, in coffeescript
cp = require 'child_process'
options = [
'-e', '''"ls
cd dir
ls
bye"'''
'-u', 'username,password',
'hostname'
]
proc = cp.execFile 'lftp', options, (err, stdout, stderr) ->
console.log err, stdout, stderr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment