term.js
term.js copied to clipboard
How can I run the shell on specific user
Hi, How can I run the shell on specific user in term.js
Thanks, Hari
I got it.
term = pty.spawn("/usr/bin/ssh", ["splessons@localhost"], { name: require('fs').existsSync('/usr/share/terminfo/x/xterm-256color') ? 'xterm-256color' : 'xterm', cols: 80, rows: 24, cwd: process.env.HOME });