Rendering pipeline

I am running opengl, c in linux. i want to two application where one application creates window and other application access this window and sends opengl commands into its rendering pipe line.
Can any help in doing this