Re: problem redirecting STDOUT to file in TCP socket server script

2002-03-18 Thread news reader
>> Hint: disable perl's print buffering with $|=1; before you fork(). I did this and it worked, Thanks, Appreciated very much, -Pratibha "Johannes Franken" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > * news reader <[EMAIL PROTECTED]> [2002-03-15 21:36 +

Re: problem redirecting STDOUT to file in TCP socket server script

2002-03-16 Thread Johannes Franken
* news reader <[EMAIL PROTECTED]> [2002-03-15 21:36 +0100]: > I have a perl script which is working as TCP socket server. [...] > if (($processarray[$testNo] = fork()) == 0) { > [...] > The problem that i am facing is : the same line is printed more than once When you fork(), the child inherits

problem redirecting STDOUT to file in TCP socket server script

2002-03-15 Thread news reader
Hello, I have a perl script which is working as TCP socket server. In this I am redirecting STDOUT to file. with command in the begining of the script: open STDOUT, '>./tRL.out' or die "./tRL.out: $!"; I have following four "print STDOUT" commands while (accept(CLIENT,SERVER)) {