On Mon, Oct 22, 2012 at 6:28 AM, Rahul Menon <[email protected]> wrote:
> I had a similar situation where i had to use it like that. I ended up having
> a similar problem but my usecase was not extensive like yours. I ended up
> using something like "sudo ( 'su www -c ls')". I hope someone out there has
> a better answer for you.
Thanks for your answer Rahul, but your solution is (as you know), not
ideal as I am planning to run a series of commands, on of them a
prompt.
I was thinking something in the lines of:
with prefix("sudo su deploymentuser"):
with cd("/home/deploymentuser/productioncode/"):
# do commands
But it just feels wrong.
I hope someone else has some experience with this problem, as it can
not be a very unique one.
--
Sincerly,
Herman Schistad
ITK, Samfundet Trondheim
_______________________________________________
Fab-user mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/fab-user