Path: utzoo!attcan!uunet!bu.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!mit-eddie!rutgers!cbmvax!ken From: ken@cbmvax.commodore.com (Ken Farinsky - CATS) Newsgroups: comp.sys.amiga.tech Subject: Re: Tags - How do they work. Message-ID: <15486@cbmvax.commodore.com> Date: 31 Oct 90 15:45:05 GMT References: <53246.657345554@atronx.UUCP> Reply-To: ken@cbmvax.commodore.com (Ken Farinsky - CATS) Organization: Commodore, West Chester, PA Lines: 40 I posted this the other day, which turned out to be wrong (as System() will not handle tags on the stack...) >>rc = System(argv[1], >> SYS_Input, infile, >> SYS_Output, outfile, >> SYS_Asynch, FALSE, >> TAG_DONE >> ); Ewout sent me some mail, as follows: >>Ken, System() is tag, not stack based. So he'd have to do something like >> >>struct TagItem tag[5]; >> >>tag[0].ti_Tag = SYS_Input; >>tag[0].ti_Data = infile; >> . >> . >>tag[4].ti_Tag = TAG_END; >> >>But the whole thing that guy is trying to do is wrong anyway since you cannot >>use a level 2 filehandle as an AmigaDOS BPTR filehandle. >>--- >>Ewout Walraven - CATS Commodore Business Machines, Inc. >>215-431-9426 {uunet|rutgers}!cbmvax!ewout So, you have to put the tags into an array, then call System() with a pointer to the name of the command and a pointer to the tag array. Live and learn. > Russell McOrmond rwm@atronx.UUCP {fts1,alzabo}!atronx!rwm > FidoNet 1:163/109 Net Support: (613) 230-2282 > Amiga-Fidonet Support 1:1/109 -- -- Ken Farinsky - CATS - (215) 431-9421 - Commodore Business Machines uucp: ken@cbmvax.commodore.com or ...{uunet,rutgers}!cbmvax!ken bix: kfarinsky