3 changed files with 58 additions and 34 deletions
@ -0,0 +1,17 @@ |
|||||
|
#!/usr/bin/perl |
||||
|
|
||||
|
my $user_at_address = $ARGV[0]; |
||||
|
my @u_a = split(/@/, $user_at_address); |
||||
|
if (defined $u_a[1]) { |
||||
|
if ( $^O == 'linux' ) { |
||||
|
exec ("/usr/bin/ssh $u_a[0]\@$u_a[1]"); |
||||
|
} |
||||
|
} |
||||
|
else { |
||||
|
print "Enter your username: "; |
||||
|
my $username = <STDIN>; |
||||
|
chomp ( $username ); |
||||
|
if ( $^O == 'linux' ) { |
||||
|
exec ("/usr/bin/ssh $username\@$u_a[0]"); |
||||
|
} |
||||
|
} |
@ -1,34 +1,34 @@ |
|||||
{ |
{ |
||||
"name": "wetty", |
"name": "wetty", |
||||
"version": "0.2.0", |
"version": "0.2.0", |
||||
"dependencies": { |
"dependencies": { |
||||
"express": "3.5.1", |
"express": "3.5.1", |
||||
"socket.io": "^1.3.7", |
"socket.io": "^1.3.7", |
||||
"pty.js": "^0.3.0", |
"pty.js": "^0.3.0", |
||||
"optimist": "^0.6" |
"optimist": "^0.6" |
||||
}, |
}, |
||||
"devDependencies": { |
"devDependencies": { |
||||
"load-grunt-tasks": "^3.0", |
"load-grunt-tasks": "^3.0", |
||||
"grunt": "^0.4", |
"grunt": "^0.4", |
||||
"grunt-shell": "^1.1", |
"grunt-shell": "^1.1", |
||||
"grunt-mkdir": "^0.1", |
"grunt-mkdir": "^0.1", |
||||
"grunt-git": "^0.3", |
"grunt-git": "^0.3", |
||||
"grunt-contrib-clean": "^0.6" |
"grunt-contrib-clean": "^0.6" |
||||
}, |
}, |
||||
"description": "Wetty = Web + tty. Terminal access in browser over http/https ", |
"description": "Wetty = Web + tty. Terminal access in browser over http/https ", |
||||
"main": "app.js", |
"main": "app.js", |
||||
"repository": { |
"repository": { |
||||
"type": "git", |
"type": "git", |
||||
"url": "git://github.com/krishnasrinivas/wetty.git" |
"url": "git://github.com/krishnasrinivas/wetty.git" |
||||
}, |
}, |
||||
"author": "Krishna Srinivas <krishna.srinivas@gmail.com> (https://github.com/krishnasrinivas)", |
"author": "Krishna Srinivas <krishna.srinivas@gmail.com> (https://github.com/krishnasrinivas)", |
||||
"license": "MIT", |
"license": "MIT", |
||||
"bugs": { |
"bugs": { |
||||
"url": "https://github.com/krishnasrinivas/wetty/issues" |
"url": "https://github.com/krishnasrinivas/wetty/issues" |
||||
}, |
}, |
||||
"homepage": "https://github.com/krishnasrinivas/wetty", |
"homepage": "https://github.com/krishnasrinivas/wetty", |
||||
"preferGlobal": "true", |
"preferGlobal": "true", |
||||
"bin": { |
"bin": { |
||||
"wetty": "./bin/wetty.js" |
"wetty": "./bin/wetty.js" |
||||
} |
} |
||||
} |
} |
||||
|
Loading…
Reference in new issue