sites to rast:non-interactive

Is there any way to convert from sites to raster
in a non-interactive way (not using s.menu)?
(I would need the category values of the sites file:
x|y|#z
to become the cell values of the raster file).

Thanks
Agus