Newsgroups: comp.parallel.pvm
From: jimmy@why.net (Jimmy)
Subject: I am new, please help...
Organization: Why Network
Date: 11 Jun 1996 01:40:01 GMT
Message-ID: <4piiph$19t@what.why.net>

I currently write a c program under Linux with pvm, but it won't work.
Here is my code:

/*parent*/
pvm_spawn
ask to enter string(str1)
{
	pvm_init, pvm_pkstr(str1) and pvm_send
} until str1='end'
pvm_recv
pvm_upkstr(str2)
print str2

/*child*/
do
{
	pvm_recv
	pvm_upkstr(str1)
	strcat(str2,str1)
}until str1='end'
pvm_init
pvm_pkstr(str2)
pvm_send

I knew the problems are those two loops because without the loops, it works 
great.  Please help.....

BTW, how can I use printf() to print a message to the screen in the child.
I tried, no error but nothing displayed.


