Railway authorities have introduced a system where one can complain from a running train.The SMS about complaint will be acknowledged and attened. Give the train no,bogie no,precise nature of compliant - no water in bath room/no lights/fan not working/security problem or whatever through SMS. This has been checked with Supdt who confirms it is an effective tool.
The Railway number to which you can SMS is 8121281212.