fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fab-user] using sudo and rm/mv


From: Christian Vest Hansen
Subject: Re: [Fab-user] using sudo and rm/mv
Date: Tue, 2 Dec 2008 20:26:27 +0100

On Mon, Dec 1, 2008 at 8:08 PM, William Liu <address@hidden> wrote:
> I've recently stumbled upon Fabric and its been a great tool.  Things have
> been working great, but one slight problem.  In my script, I have a few
> calls which do some filesystem manipulation, specifically removing a
> directory (rm -fr olddir) and renaming (mv newdir olddir) -- I'm using
> 'sudo' to do this on a remote machine.
>
> Even though on the remote machine, the call goes through (e.g. the directory
> is removed), locally, I get an error saying the sudo operation failed
> (subsequent Socket closed).  To get around this, I've simply used the 'fail'
> kwarg and set it to 'warn'.  I was wondering if there was a specific reason
> why this is happening, or if I'm doing something wrong -- thanks,

Are you running Fabric on Windows? Because I have a feeling that
there's a difference in how threading works on win32 vs. *nix, but I
don't have access to a Windows box so I can't test that theory (or my
code, for that matter).

Appart from that, stuff like the version of paramiko, OSes, what SSH
server you connect to, is good to know when trying to figure this one
out. Also, the version of Fabric and some fabfile code with the shell
output you get.

>
> -w
>
>
>
>
>
> _______________________________________________
> Fab-user mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/fab-user
>



-- 
Venlig hilsen / Kind regards,
Christian Vest Hansen.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]