Quote:
Originally Posted by lothario
I have setup the "~/.bashrc" for a user and it is working fine.
It takes about 5 to 10 seconds to finish running because everytime the user logs in, it needs to fetch and process some data from a remote server.
So the user knows that he has to wait for about 5 to 10 seconds.
How can I prevent the user from doing Ctrl-C on the keyboard to abort this "~/.bashrc" prematurely?
|
One way might be to remap Ctrl key to something else like spacebar before the script starts or at the top of your script. Then remap it back to what ever was the default...
I would start by looking at the Xdefaults file or the xmodmap command.
I think xmodmap can be run before the script and after the script, in theory you could remap all keys to spacebar, then load the default xmodmap when done.
This is how I setup kiosks.
-t