Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I run the shell on specific user #101

Open
isreehari opened this issue Dec 7, 2015 · 1 comment
Open

How can I run the shell on specific user #101

isreehari opened this issue Dec 7, 2015 · 1 comment

Comments

@isreehari
Copy link

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

Thanks,
Hari

@isreehari isreehari changed the title How can I run open the shell on specific user How can I run the shell on specific user Dec 7, 2015
@isreehari
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant