fab-user
[Top][All Lists]
Advanced

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

[Fab-user] run commands in sub-shell?


From: Mohamed Lrhazi
Subject: [Fab-user] run commands in sub-shell?
Date: Sun, 10 Apr 2011 15:44:23 -0400

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.



reply via email to

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