[comp.sys.atari.st] Help with I/O redirection

peterb@beldar.UUCP (05/11/87)

--
I've got a problem using command line redireciton in csh.

I'm using Beckmeyer's csh, and the Alcyon compiler/linker.

Problem is, I can't get redirection from the commands line to
work with my programs. Worse yet, if I just use getchar/putchar,
then the output goes nowhere(except to the ST equiv of /dev/null).

Anybody got any bright ideas for me??? I've been hacking at this for over
a week, and getting nowhere.

If I use Cconout, and then redirect output, I get a bus error(2 bombs).

Help! I'ld love a code example of something that works in my configuration!!!

Peter Barada
Xyvision, Inc.
(617)-245-4100
UUCP: ...!ihnp4!mirror!beldar!peterb

john@viper.UUCP (John Stanley) (05/15/87)

  Peter, Cconout will bomb if you try to use it with redirection.  
Replace calls to Cconout with Cconws (gemdos(9)), which prints a 
string instead of a character, and you should have no problems...
(No, there isn't any way I know of to redirect a null character...:(

  BTW, anyone at Atari know if this nusance is going to be
fixed in the next ROM update?

--- 
John Stanley (john@viper.UUCP)
Software Consultant - DynaSoft Systems
UUCP: ...{amdahl,ihnp4,rutgers}!{meccts,dayton}!viper!john