Paul, Stewart, here's something to try:

ssh -t u...@host '/etc/init.d/myserver start'

(replace name as you would, nginx/tomcat) -- the -t is for TTY allocation
(more accurately Pseudo TTY)

>From the manual:

Force pseudo-tty allocation.  This can be used to execute arbitrary
> screen-based programs on a remote machine, which can be very useful, e.g.
> when implementing menu services.  Multiple -t options force tty allocation,
> even if ssh has no local tty.


You can emulate this behaviour (if it works out for you) in capistrano by
setting `ssh_options[:pty] = true` (via http://www.capify.org/index.php/Run)

I can't believe I didn't think of this, someone in #openssh on Freenode just
threw me a bone, so if it works out - I'll answer the SO question and reap
some points there :)

- HTH, Lee

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to