|
From: | Don Jackson |
Subject: | Re: [Fab-user] using run on a machine that doesn't have /bin/bash |
Date: | Fri, 21 Nov 2008 10:48:01 -0800 |
Yes. It's called the `fab_shell` variable, and it is by default defined like this: /bin/bash -l -c "%s" That helps, but I'm still doing something wrong: set( fab_hosts = ['svn01'], ) set( fab_shell = '/bin/sh -l -c "%s"' ) def pwd(): "prints cwd" run("pwd") fab pwd Fabric v. 0.0.9, Copyright (C) 2008 Christian Vest Hansen. Fabric comes with ABSOLUTELY NO WARRANTY; for details type `fab warranty'. This is free software, and you are welcome to redistribute it under certain conditions; type `fab license' for details. Running pwd... Logging into the following hosts as dcj: svn01 [svn01] run: pwd [svn01] err: /bin/sh: {fab_author:: not found Error: The run operation failed on svn01. On Fri, Nov 21, 2008 at 7:01 AM, Don Jackson <address@hidden> wrote: > > Doesn't seem to work. > > $ cat fabfile > set( > fab_hosts = ['svn01'], > ) > > def pwd(): > "prints cwd" > run("pwd") > > $ fab pwd > Fabric v. 0.0.9, Copyright (C) 2008 Christian Vest Hansen. > Fabric comes with ABSOLUTELY NO WARRANTY; for details type `fab warranty'. > This is free software, and you are welcome to redistribute it > under certain conditions; type `fab license' for details. > > Running pwd... > Logging into the following hosts as dcj: > svn01 > [svn01] run: pwd > [svn01] err: ksh: /bin/bash: not found > Error: The run operation failed on svn01. > > Is there a variable I can set that will make fabric use another shell? |
[Prev in Thread] | Current Thread | [Next in Thread] |