Is there any way to execute specific code over and over, say every 5
I’m creating a little instant messenger program that uses blowfish and
rsa public/private key encryption for secure communication. When a
message is entered it is echoed into a file called text.txt, encrypted
and sent to whoever you are connected to. The problem is that in order
to run the code that receives the message, decrypts it and puts it in
the text view, I’ve had to implement a temporary solution of pressing a
‘get messages’ button.
I’m currently working on a solution using another script to check for
messages, decrypt them and save them in a file then running its self
again using ‘exec’.
I just need to figure out how to have my main script check this text
file every 5 seconds or so and run the code to display it on the screen.
Any help would be greatly appreciated.
(please bear in mind I’m a complete noob at programming)