Path: utzoo!attcan!uunet!sco!brianm From: brianm@sco.COM (Brian Moffet) Newsgroups: comp.sys.amiga.tech Subject: Re: problems with forkv (lattice) Message-ID: <1804@scolex> Date: 30 Nov 88 18:38:00 GMT References:<1132@dukeac.UUCP> Reply-To: brianm@sco.COM (Brian Moffet) Organization: The Santa Cruz Operation, Inc. Lines: 47 In article <1132@dukeac.UUCP> rsb@dukeac.UUCP (R. Scott Bartlett) writes: > >If someone has figured out how to get this to work, PLEEEZE tell me too! >forkv() does exactly what i need it to do. I have tried Execute(), but gave How about forkl()? Here is a sample bug report that I sent to lattice sometime ago, the call to echo does not work (crashes) but a call to a C program (as compared to BCPL) seems to work. I stopped using it because I need to use normal dos commands like echo, list, dir .... -=-=-=-=-start listing-=-=-=-=- /* * Lattice 4.01 */ #include #include #include main( argc, argv ) int argc; char *argv[]; { struct ProcID pid; signal( SIGINT, SIG_IGN ); if( argc > 1 ) { printf( "This works fine\n" ); exit( 0 ); } forkl( "fexec", "fexec", "hello there", NULL, NULL, &pid ); wait( &pid ); forkl( "echo", "echo", "hello there", NULL, NULL, &pid ); wait( &pid ); } -- Brian Moffet {uunet,decvax!microsoft,ucscc}!sco!brianm -or- ...sco!alar!brian "Evil Geniuses for a better tomorrow!" My fish and company have policies. I have opinions.