Execute lynx in a c program and make it go to a certain URL
I'm a Linux newbie, and I'm just starting out to do C programming in Linux.
I need to call lynx to go into a certain website from a C program that I already made when a certain key is pressed. I've read that one needs to call a fork() system call to make a child process and to use any of the functions in the exec family (execlp, exeve,execl, and the like)but I seem to have a problem understanding how they differ from one another and which one should I use, and how will I pass the URL I want to visit which is stored as a string.
I will appreciate any suggestions. Thanks in advance.
|