i'm trying to write a c code which opens the xeyes application and then those eyes keep changing its color constantly for a particular eriod of time..
i tried to achieve this by executing xeyes with one center color, adding a delay of 3 seconds, killing the process, and opening xeyes with another center colour and so on inside a loop.
on execution of this code however, the first xeyes process does not get killed and the following processes do not execute.
is there a better way of doing this?