Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!unido!horga!yedik!germal!gm From: gm@germal.han.de (Gerald Malitz) Newsgroups: comp.sys.amiga.programmer Subject: Re: C questions (again) Message-ID: <18cd34bd.ARN078b@germal.han.de> Date: 9 Mar 91 22:46:05 GMT References: <1991Feb7.114348.10577@marlin.jcu.edu.au> Organization: Private Amiga Site Lines: 28 Hey, funny things happen. Type `prompt "%N.%S> "' before you start program1. See what happened after program1 "ended"? The CLI-Number changed (usually incremented by one). Enter `endcli' and there it is :-). program1 didn't really end, it's still inside Execute, which reads commands from input. That's why it didn't print your message. There are several ways to fix it. You can call Execute("program2\nendcli", input, 0) or you can call Execute("program2", 0, 0) In later case program2 has no stdin (or nil: as stdin or something like that), so it has to open * to read from. Or you can call Execute("program2 <*", 0, 0) BTW you needn't open dos.library yourself, it's done by SAS-startup- code in c.o. If you do it yourself, you should do it right calling OpenLibrary("dos.library", 0) (or whatever version you need). The first answer I got from program1 was "Open lib failed". Hm, I'm late with it, no too late, I hope. Best regards Please avoid replies from outside of .de, thanks. -- // Gerald Malitz, Bolchentwete 4, 3300 Braunschweig, Voice: +49 531 796832 \X/ UUCP: gm@germal.han.de Mittagspause von 0.30 bis 23.45 Uhr