There's a sample script that deals with your issue by using fork. Check it out here
In reply to Re: Server waits for user input before sending text.
by em
in thread Server waits for user input before sending text.
by thran
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |