in reply to how to run your program when the system is started....

i want to run it as soon as the user log in the window or linux operating systems?
If you are using BASH on Linux and other unix-like systems edit ~/.bash_profile. If you are using CSH edit ~/.login . See the man pages for bash and csh.