вот тут подробно описано http://saechka.ru/kuche/batch/213.php