Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!decwrl!ucbvax!POSTGRES.BERKELEY.EDU!dillon From: dillon@POSTGRES.BERKELEY.EDU (Matt Dillon) Newsgroups: comp.sys.amiga Subject: Re: Filehandles and Execute() Message-ID: <8811161854.AA28755@postgres.Berkeley.EDU> Date: 16 Nov 88 18:54:55 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 24 :In article <4997@garfield.MUN.EDU>, john13@garfield.MUN.EDU (John Russell) writes: :> In reading the description of Execute() in the AmigaDOS Developer's Manual, :> the bit about the filehandles you pass to it isn't clear. : :That's certainly true. I'm still not sure when you even want to provide them. :-- : Peter da Silva `-_-' peter@sugar.uu.net Lezee, Execute("cli-command", infh, outfh); Essentially, if INFH is non-null, this points to a stream which is interpreted by the CLI as commands after the "cli-command" is run. I.E. it is NOT the input-redirection for the command you are trying to run, but a CLI script. outfh, on the otherhand, *is* the output redirection of the command you are trying to run. And since you are giving it a cli-command, you can include redirection within the command string itself, thus normally I do this: Execute("somecommand outfile", NULL, NULL); -Matt