[comp.sys.mac.programmer] Using ccommand

tcm@moscom.UUCP (Tom Maszerowski) (12/15/90)

Could some kind soul lend me some help? I ported a UN*X program, ( GNU
awk, gawk ) to THINK C 4.0 on the Mac and used ccommand() to emulate the
shell command line.  This works fine.  However, some of the users have
told me that they would really like it if they didn't have to relaunch
gawk every time they ran a script.  So, I tried setting up a loop, with
ccommand() at the top.  The first time through, it works fine.  The
second time it crashes in ccommand() with an Odd Address trap.  I
grabbed a copy of the source and was able to determine that the crash
was in cshow(). I was unable to get a copy of cshow() to link so my
search ended there. My question is, what do I need to do to make it 
possible to call ccommand() more than once?

I would expect that this does not have universal interest, so replies
by email would be best. Use the addresses in my .sig. 

Thanks.

PS
GCC for the Mac - Great! It's amazing how many "pirates" have ported
GNU software to the Mac...



-- 
Tom Maszerowski	tcm@moscom.com
		{rit,tropix,ur-valhalla}!moscom!tcm
*** Note Changed uucp Address ***