Using system function to run xview
Posted on 2004-04-24
I am writing C++ code (Linux) to display an image file using xview. After the image is displayed for 10 seconds, how do I go about displaying the next file considering that I cannot launch xview again unless I close out the original display?
I tried this:
The only way I can shut down the application if I do a CTRL-C. How can I capture those keystrokes and use it within the system function? The only other way, which I was hoping I wouldn't have to do is use the system function to write out the process ids to a file then read that file and get the process id that corresponds to the xview.