Try making your first command source the resource files:

source /home/username/.bashrc

I believe this is a "feature" of net-ssh (I've hit the same problem  
when just using net-ssh).

HTH,
Roy

On Sep 2, 2009, at 2:12 PM, vanderkerkoff wrote:

>
>
> "I'm not sure, but I think that capistrano uses "sh" shell to execute
> commands."
>
> me neither
>
> can anyone confirm or deny that?
>
>
> On Sep 2, 7:05 pm, "Rafael G." <[email protected]> wrote:
>> I'm not sure, but I think that capistrano uses "sh" shell to execute
>> commands.
>> Could you try to execute a function from "sh"?
>>     bash $ sh
>>     sh $ my-function
>>
>> Regards
>>
>> Will Clark wrote:
>>> My functions are in /etc/bashrc.
>>
>>> I am setting default_run_options[:pty] = true. I also tried moving  
>>> the
>>> functions to ~/.bashrc & ~/.bash_profile for the account I use to
>>> deploy and still get the same error. So I must be missing something
>>> obvious.
>>
>> --
>> Rafa
> >


--~--~---------~--~----~------------~-------~--~----~
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.co.uk/group/capistrano?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to