Article View: comp.sys.amiga.tech
Article #10447Re: problems with forkv (lattice)
From: Brian Moffet
Date: Wed, 30 Nov 1988 18:38
Date: Wed, 30 Nov 1988 18:38
47 lines
1548 bytes
1548 bytes
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 <stdio.h>
#include <dos.h>
#include <signal.h>
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.
Technical Details
Message-ID:
<1804@scolex>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!sco!brianmReferences:
<wXY38Sy00Uka8=Ac5B@andrew.cmu.edu> <1132@dukeac.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <wXY38Sy00Uka8=Ac5B@andrew.cmu.edu> <1132@dukeac.UUCP> Reply-To: brianm@sco.COM (Brian Moffet) Organization: The Santa Cruz Operation, Inc. Lines: 47