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
[email protected]
http://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to