Hi Kyle,
On Wed, Nov 16, 2011 at 4:41 PM, Kyle B <[email protected]> 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 mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/fab-user