Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!tcdcs!bofin!cjmchale From: cjmchale@cs.tcd.ie (Ciaran McHale) Newsgroups: comp.windows.x Subject: Re: XTERM and redirection. Message-ID: <1991Mar4.223029.9641@cs.tcd.ie> Date: 4 Mar 91 22:30:29 GMT References: Distribution: comp Organization: DSG, Dept. of Comp. Sci., Trinity College, Dublin. Lines: 32 In jc@raven.bu.edu (James Cameron) writes: >[...] 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: [errors] One way is to create a file, say, foo which contains the following: ----cut here; start of foo---- #!/bin/sh demo2 input/sentences_1 < input/numbers_1 ----cut here; end of foo---- Then make sure that the execute bit on foo is set so that foo is a proper executable shell script. Then do: xterm -name DEMO -title DEMO -e foo By the way, 14 lines is a bit long for a .signature; please trim it. Regards, Ciaran. -- Ciaran McHale "Verbosity says it all" ____ Department of Computer Science, Trinity College, Dublin 2, Ireland. \ / Telephone: +353-1-772941 ext 1538 FAX: +353-1-772204 \/ Telex: 93782 TCD EI email: cjmchale@cs.tcd.ie