Very interesting. I'm afraid I don't have an OS X Server instance to  
play with, so I can't duplicate this. Anyone want to try and dig in  
to figure out what's going on?

- Jamis

On Feb 5, 2007, at 6:10 AM, CK wrote:

>
>
> I have the same strange thing happening on my system.
>
> If I run 'cap datetest':
>
> task :datetest, :roles => :app do
>   run "echo `date +\"%Y-%m-%d %H:%M:%S\"` $USER 6 20070205130022"
> end
>
> with :app being the (remote) application server (Apple OS X Server
> 10.4 - Darwin Kernel Version 8.8.4) it works fine:
>
>   * executing task datetest
>   * executing "echo `date +\"%Y-%m-%d %H:%M:%S\"` $USER 6
> 20070205130022"
>     servers: ["app"]
>     [app] executing command
>  ** [out :: app] 2007-02-05 08:06:52 ck 6 20070205130022
>     command finished
>
> But if I run 'cap cold_deploy' or 'cap deploy' for that matter, it
> fails as described above.
>
> Executing 'run "echo $SHELL"' reveals that it uses
>
> ** [out :: app] /bin/bash
>
> Any suggestions are welcome.
>
>
> On Feb 4, 5:25 pm, Jamis Buck <[EMAIL PROTECTED]> wrote:
>> David,
>>
>> What shell are you using on the OS X server? Also, what version of  
>> OS X?
>>
>> I just created a simple capfile to test this with:
>>
>>    role :local, "localhost"
>>    task :datetest do
>>      run "date +\"%Y-%m-%d %H:%M:%S\""
>>    end
>>
>> And running it seems to work fine on my OS X machine:
>>
>>    pemba> cap datetest
>>      * executing task datetest
>>      * executing "date +\"%Y-%m-%d %H:%M:%S\""
>>        servers: ["localhost"]
>>        [localhost] executing command
>>     ** [out :: localhost] 2007-02-04 15:24:13
>>        command finished
>>
>> - Jamis
>>
>> On Feb 3, 2007, at 7:40 PM, David Bock wrote:
>>
>>> I have a project that has been deploying successfully to a linux
>>> box for months.  I am now trying to deploy it to an OS X server,
>>> and I am getting a problem on the update command in particular.  I
>>> have created the simplest thing that could possibly work, and I can
>>> successfully reproduce the problem.
>>
>>> First problem:
>>> When trying to run update to the mac server, the command echoed
>>> back from the server has escaped the '\n' characters so that they
>>> are '\\\n', and the command syntax is hosed.
>>
>>> So I copy the command, tweak it by hand, and then I get the second
>>> problem... the date command, which looks like this in the cap  
>>> output:
>>
>>> date +\"%Y-%m-%d %H:%M:%S\"
>>
>>> come back with:
>>
>>> date: illegal time format
>>
>>> Given that I have been able to reproduce this problem on two
>>> different macs with two different projects (one of which has the
>>> simplest deploy.rb that could possibly work), I'm at a loss as to
>>> how to fix this, or why I haven't been able to find other people
>>> experiencing the same problem.
>>
>>> and suggestions for resolving either of these issues?
>>
>>> Thanks,
>>
>>> -db
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to