[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fab-user] Fabric Run Prompt
From: |
Jeff Forcier |
Subject: |
Re: [Fab-user] Fabric Run Prompt |
Date: |
Sun, 20 Nov 2011 09:08:24 -0800 |
Hi Kyle,
On Wed, Nov 16, 2011 at 4:41 PM, Kyle B <address@hidden> wrote:
> I saw that I can abort the script on
> prompts, but I need to interact with them.
Did you try doing so? Fabric 1.0+ will send anything you type to the
remote end, so you should be able to type in the password and hit
Enter just as if you had invoked the program in a real shell.
> Is it possible when using the run or sudo commands to do something like:
>
> resultĀ = run("/path/to/command.sh")
> if result prompted me with "Enter ....", then pass in text ".....".
This is generally known as 'expect' behavior (there's a Unix program
with the same name) and it's not implemented yet, though there is a
ticket open to investigate it.
Since interactivity is possible and nearly every well behaved program
is capable of being scripted in other ways (e.g. flags, or "read auth
from <file path>" options -- which I think SVN has) it's not been a
high priority.
Hope that helps,
Jeff
--
Jeff Forcier
Unix sysadmin; Python/Ruby engineer
http://bitprophet.org
- [Fab-user] Fabric Run Prompt, Kyle B, 2011/11/19
- Re: [Fab-user] Fabric Run Prompt,
Jeff Forcier <=
- Re: [Fab-user] Fabric Run Prompt, Paul Hoffman, 2011/11/20
- Re: [Fab-user] Fabric Run Prompt, Kyle B, 2011/11/21
- Re: [Fab-user] Fabric Run Prompt, Jeff Forcier, 2011/11/21
- Re: [Fab-user] Fabric Run Prompt, Kyle B, 2011/11/21
- Re: [Fab-user] Fabric Run Prompt, Chris McDonald, 2011/11/21
- Re: [Fab-user] Fabric Run Prompt, Jeff Forcier, 2011/11/21
- Re: [Fab-user] Fabric Run Prompt, Jeff Forcier, 2011/11/21
- Re: [Fab-user] Fabric Run Prompt, Jeff Forcier, 2011/11/21
- Re: [Fab-user] Fabric Run Prompt, Kyle B, 2011/11/21
- Re: [Fab-user] Fabric Run Prompt, Jeff Forcier, 2011/11/21