kjh@visual1.jhuapl.edu (Kenneth J. Heeres) (03/20/91)
I would like to be able to issue a shell command and capture the output for use in a text widget. I have written code that takes a file descripter and passes the contents of the file to the text widget. I tried using popen to capture the output. My code counts the characters in the file descriptor, allocates the space, rewinds the file, and then reads it into the space. The rewind on the pipe from popen gives an error. Indicating illegal seek?? Any help? -- ========================================================================== Kenneth J. Heeres The Johns Hopkins University INTERNET: kjh@visual1.jhuapl.edu Applied Physics Laboratory Johns Hopkins Road Laurel, MD 20723-6099