I want to run a command as soon as I save a specific text file. I know how to do it when the file closes, but I am looking for the code to execute as soon as I hit Ctrl+S.
Thanks in advance..
You can do this using tools from the inotify-tools package, available in the archives or using other libraries such as pyinotify.
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
2 years ago