Closed pdarscht closed 9 years ago
running this example:
gulp.task('test2', function () { return gulpSSH .exec(['date','hostname', 'cd /opt/app/', 'pwd', 'ls -a'], {filePath: 'commands.log'}) .pipe(gulp.dest('logs')); });
leaves in the log:
Fri Mar 20 15:12:35 UTC 2015 s21 /home/operador . .. .bash_history .bash_logout .bash_profile .bashrc
that means, that everything works fine unless the "change directory" command. Can you help me?
https://github.com/teambition/gulp-ssh/issues/4
excuse me, I can´t understand your point... is it a bug or am I doing something wrong?
use shell instead of exec
shell
exec
running this example:
leaves in the log:
that means, that everything works fine unless the "change directory" command. Can you help me?