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 to stay on the remote server #45

Closed
ozbillwang opened this issue May 14, 2015 · 1 comment
Closed

how to stay on the remote server #45

ozbillwang opened this issue May 14, 2015 · 1 comment

Comments

@ozbillwang
Copy link

With the simple Rakefile:

require 'rake'

desc "login app1.dev"
task :app1 do
  command="ssh app1.dev.example.com bash"
  system(command)
end

When run rake app1, it is no prompt, I have to ctrl+c to cancel it.

if I change to command="ssh app1.dev.example.com pwd", show me the path, exist, and back to my local shell.

What I need is, after login app1.dev, stay and I can continuos the job on server app1.dev

@drbrain
Copy link
Member

drbrain commented May 14, 2015

This isn't a rake bug.

Try ssh -t Or the rake-remote_task gem

@drbrain drbrain closed this as completed May 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants