[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fab-user] run commands in sub-shell?
From: |
Christian Vest Hansen |
Subject: |
Re: [Fab-user] run commands in sub-shell? |
Date: |
Mon, 11 Apr 2011 00:14:54 +0200 |
It already does this. With sudo(), the env.sudo_prefix is put in front
of the command constructed with env.shell (bash by default) and your
command line.
On Sun, Apr 10, 2011 at 21:44, Mohamed Lrhazi <address@hidden> wrote:
> wouldn't it be better if run() and sudo() run commands in a subshell?
> as sudo man page says:
>
>
> To make a usage listing of the directories in the /home partition.
> Note that this runs the commands in a sub-shell to make the cd and
> file redirection work.
>
> $ sudo sh -c "cd /home ; du -s * | sort -rn > USAGE"
>
>
> Or this possible by setting some env variables?
>
>
> Thanks,
> Mohamed.
>
> _______________________________________________
> Fab-user mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/fab-user
>
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.