Hi Rama,
from the name of the command I guess you are trying to launch a webserver
on the remote machine. Are you sure it daemonizes correctly? Does it
keep running when
you start it manually and then close the console to the server?
Maybe it is still attached to the console. In this case you propably
want to have a
look at the "disown" command:
http://sial.org/howto/shell/background/
nico
On 23.06.2010 05:02, Rama Vadakattu wrote:
Hi Nico,
It is running fine if i use
sudo("suwww", shell=False)
but command is still getting hanged when i run via fabric.
after some search in google i find one post on how to resolve this problem
http://agiletesting.blogspot.com/2010/03/getting-past-hung-remote-processes-in.html
even after doing the changes to operations.py as mentioned in the
above blog post, still the above command is getting hanged when i run
it via fabric.
No clue what is going wrong.
Thanks
rama
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 Tue, Jun 22, 2010 at 3:37 PM, Rama Vadakattu
<rama.vadaka...@gmail.com <mailto:rama.vadaka...@gmail.com>> 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 <http://qa-batch.qa.ebay.com>] sudo: suwww
[qa-batch.qa.ebay.com <http://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
<karmazi...@gmail.com <mailto:karmazi...@gmail.com>> wrote:
Have you tried sudo("suwww") instead of run("sudo suwww") ?
On Tue, Jun 22, 2010 at 11:49, Rama Vadakattu
<rama.vadaka...@gmail.com <mailto:rama.vadaka...@gmail.com>>
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
> Fab-user@nongnu.org <mailto:Fab-user@nongnu.org>
> http://lists.nongnu.org/mailman/listinfo/fab-user
>
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
--
geOps
Belfortstr. 17
D-79098 Freiburg
www.geOps.de
_______________________________________________
Fab-user mailing list
Fab-user@nongnu.org
http://lists.nongnu.org/mailman/listinfo/fab-user