command on vc switch



how do I run a command or script on every vc switch
.