Yes, fab logs in to the server - I use ssh keyfiles so there's no prompt.  I
tried a run('ls') before the sudo command and it works fine.  As for new
lines being appended to the log file, I don't think there were, but I'll
check.

Any other suggestions/ideas?  Thank you!



On Wed, Oct 8, 2008 at 7:06 PM, Christian Vest Hansen
<[EMAIL PROTECTED]>wrote:

> Did you get to log in to the server properly? As in, being prompted
> for a password and all that.
>
> What happens if you first do a run('echo hello') before the sudo()
> operation?
>
> Lastly, while you where sitting there waiting for something to happen,
> were there actually any new lines appended to that log file?
>
> On Thu, Oct 9, 2008 at 12:42 AM,  <[EMAIL PROTECTED]> wrote:
> > Whenever I use the fab sudo command, I see the command echoed on screen,
> but
> > never see a password prompt; it just seems to hang.  Hitting CTRL-C
> breaks
> > out of it with an error message like,
> >
> > Error: The sudo operation failed on myserver.com:
> >     <lambda>() takes no arguments (2 given)
> > [pickii.com] err: [sudo] password for some_user:
> >
> >
> > In this particular case, the fabfile command looks like,
> >
> > sudo('tail /var/log/apache2/error.log')
> >
> > Probably I'm doing something stupid, would appreciate any pointers,
> thanks!
> >
> > Shev
> >
> > _______________________________________________
> > Fab-user mailing list
> > [email protected]
> > http://lists.nongnu.org/mailman/listinfo/fab-user
> >
> >
>
>
>
> --
> Venlig hilsen / Kind regards,
> Christian Vest Hansen.
>
_______________________________________________
Fab-user mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to