term.js icon indicating copy to clipboard operation
term.js copied to clipboard

How can I run the shell on specific user

Open isreehari opened this issue 9 years ago • 1 comments

Hi, How can I run the shell on specific user in term.js

Thanks, Hari

isreehari avatar Dec 07 '15 20:12 isreehari

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 });

isreehari avatar Dec 08 '15 02:12 isreehari