fab-user
[Top][All Lists]
Advanced

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

Re: [Fab-user] hanging problem of a command when executing via fabric


From: Nico Mandery
Subject: Re: [Fab-user] hanging problem of a command when executing via fabric
Date: Tue, 22 Jun 2010 12:19:49 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10) Gecko/20100619 Icedove/3.0.5

Hi Rama,

Seems you only got permissions to run a few commands with sudo and not everything. fabirics
sudo tries to spawn a new shell per default, and you got no permission for that.

sudo("suwww", shell=False)
should work


Regards,
Nico


On 22.06.2010 12:07, Rama Vadakattu wrote:
I tried that way too.................... \
below is sample output that i am getting when i use sudo("suwww")

D:\LMO_auto>fab  execute_lmo_scripts
preparing to execute lmo scripts................
[qa-batch.qa.ebay.com] sudo: suwww
[qa-batch.qa.ebay.com] err: Sorry, user xyz is not allowed to execute '/bin
/bash -l -c suwww' as root on qabatch04.

Fatal error: sudo() encountered an error (return code 1) while executing 'suwww'

Aborting.
Disconnecting from qa-batch.qa.machine2.com... done.

regards
rama

On Tue, Jun 22, 2010 at 3:22 PM, Christian Vest Hansen <address@hidden> wrote:
Have you tried sudo("suwww") instead of run("sudo suwww") ?

On Tue, Jun 22, 2010 at 11:49, Rama Vadakattu <address@hidden> wrote:
> Hi all,
> When i am running the below command on one of the machine  via fabric it is
> getting hanged.
> def execute_lmo_scripts():
>     print "preparing to execute lmo scripts................"
>     output = run("sudo suwww ; ")
> If i manually run the command on the remote server it is running fine.
> Can any one please guide me on how to resolve this problem?
>
> Regards
> rama
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> Fab-user mailing list
> address@hidden
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.

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


-- 
geOps
Belfortstr. 17
D-79098 Freiburg

www.geOps.de

fon     +49 761 503 126 91
fax     +49 761 503 126 94

reply via email to

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