If the batteries are lead acid they should have a vent, if not loosen the cell tops to allow the hydrogen to escape.
Remember no smoking, naked lights, or operating any electrical equipment that could cause a spark and have plenty of ventilation while the batteries are gassing.
You can calculate when the batteries are gassing by the specific gravity and cell temperature. I can't remember the equation but its should be easily found on the internet or at the local library.
Remember that hydrogen is lighter than air.
Hydrogen gas has a distinctive smell/taste, you can smell it and taste it at the same time.