Path: utzoo!attcan!uunet!cbmvax!andy From: andy@cbmvax.UUCP (Andy Finkel) Newsgroups: comp.sys.amiga Subject: Re: Question about program to execute other programs. Keywords: Execute, stdin, stdout, keyboard queue Message-ID: <6994@cbmvax.UUCP> Date: 26 May 89 15:06:58 GMT References: <1345@rivm05.UUCP> Reply-To: andy@cbmvax.UUCP (Andy Finkel) Organization: Commodore Technology, West Chester, PA Lines: 32 In article <1345@rivm05.UUCP> ccemdd@rivm.UUCP (Marco Dedecker) writes: > execute(command, stdin, stdout) > >But this is not what I want. I want the execution to wait until my >program has finished. Can this be done ? Yes. The NEWLINE character can be used as a delimiter to separate multiple commands. For example, in the CLI/Shell you can type dir df0: [NEWLINE] dir df1: [NEWLINE] info [RETURN] once you type the RETURN each of your commands is executed in turn. (NEWLINE is control J on the keyboard) This same method works in the Execute() call, for example Execute("Wait 1 min\nmyprogram\n",stdin, stdout); works fairly well. andy -- andy finkel {uunet|rutgers|amiga}!cbmvax!andy Commodore-Amiga, Inc. "Trouble can be purchased cheaply, though the refund may be more than you can afford." Any expressed opinions are mine; but feel free to share. I disclaim all responsibilities, all shapes, all sizes, all colors.