Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!bu.edu!nntp-read!jc From: jc@raven.bu.edu (James Cameron) Newsgroups: comp.windows.x Subject: XTERM and redirection. Message-ID: Date: 4 Mar 91 15:22:38 GMT Sender: news@bu.edu.bu.edu Distribution: comp Organization: What do you mean *I* can't do that???? Lines: 38 I am trying to do some fairly simple demos in C. Now, to add a little "excitement" to them, I want a script to open up an xterm and have the standard output go to the xterm. However, I need to do some redirection: ie I WANT to call it like this: $ xterm -name DEMO -title DEMO -e 'demo2 input/sentences_1 < input/numbers_1' but what I get from the xterm is: xterm: Can't execvp a.out input/sentences_1 < input/numbers_1 Apparently the C code in the xterm can't handle the redirection. I have tried it without the quotes, but then it sits on STDIN wanting the numbers that it was suppose to get from the file. Now, I have gotten other demos going using xterm when redirection wasn't necessary...Any pointers would be greatly appreciated. JC -- James Cameron - jc@raven.bu.edu Signal Processing and Interpretation Lab, ECS Engineering Dept. Boston University, Boston MA Work: 617 353-2879 Information Technology Boston University, Boston MA work: 617 353-2780 ext. 338 "But to risk we must, because the greatest hazard in life is to risk nothing. For the man or woman who risks nothing, has nothing, does nothing, is nothing." (A quote from the eulogy for the late Christa McAuliffe.)