Let me flip it around on you; what's the point of running the command on all 
the servers inside the block if it's not targeted to the individual server?  If 
it's to gather a value use the capture helper before the block. 

Reminds me of the old joke

Patient: Dr Dr it hurts when I do this....
Dr:  Then don't do that. 

> On Nov 29, 2013, at 6:59 AM, Varun Shankar <[email protected]> wrote:
> 
> 
> 
>> On Friday, November 29, 2013 6:31:50 PM UTC+5:30, dbray wrote:
>> The thing you are missing is you have to restrict the inner commands to the 
>> channels server; else cap is going to run your inner commands on all of the 
>> tasks servers again. 
>> 
>> run "sleep 0.1", :pty => true, :hosts => [channel[:server]]
>> 
>  
> Thanks for your reply. I am aware of the problem you mentioned. But what I 
> want to know is, why shall Capistrano fail (IOError) when the inner commands 
> are run on all the servers again?
>  
>>> On Nov 29, 2013, at 3:17 AM, Varun Shankar <[email protected]> wrote:
>>> 
>>> run "sleep 0.1", :pty => true
> 
> -- 
> -- 
> * 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
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Capistrano" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
* 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
--- 
You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to