In this paper, we propose a system for monitoring, tracking, and automating the trains. In contrast to the existing methods, we employ a global position system (GPS) and Global System for Mobile communication (GSM) by which each train is individually monitored and necessary messages are passed on proactively. The proposed system has advantages in terms of communication range and accuracy with respect to Zigbee, Wi-Fi, RFID based rail tracking method. The work has potential applications in bad weather and emergency situations like collision.