Guest User

node exec

a guest
Dec 7th, 2012
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. exec('wget ' + url , function(){
  2.     console.log ('Unziping');
  3.     exec('unzip '+ tmpName, function(){
  4.         console.log ('Extracting');
  5.         exec('mv '+ extractedFolderName + ' ' + output, function(){
  6.             exec('rm ' + tmpName, function(){
  7.                 console.log('Done');
  8.             });
  9.         });
  10.     });
  11. });
Advertisement
Add Comment
Please, Sign In to add comment