1 | var nodemiral = require('./');
|
2 |
|
3 | var taskList = nodemiral.taskList('Setup Stud');
|
4 | // taskList.execute('execute command', {command: 'echo hello'});
|
5 | // taskList.copy('Copy', {src: './README.md', dest: '~/aa.md'});
|
6 | taskList.executeScript("EXEC", {script: './aa.sh'});
|
7 |
|
8 | var session = nodemiral.session('192.241.170.33', {username: 'root', password: 'wddoqpcmuumx'});
|
9 | session.setTimeout(5000);
|
10 |
|
11 | taskList.run(session, function() {
|
12 | console.log(JSON.stringify(arguments, null, 4));
|
13 | }); |
\ | No newline at end of file |