Re: How to continue process without waiting for the output of system()?
- From: xhoster@xxxxxxxxx
- Date: 30 Aug 2007 16:41:05 GMT
Cod <zencod@xxxxxxxxx> wrote:
For example , I wrote:
system("calc");
print "hello";
Without a newline in the print, you have to careful that buffering
isn't going to get you.
Before the calc program is closed, the print statement will not
excute.
Any way to change the behavior?
I have tried fork, and system("calc&"), all failed.
What do you mean by "failed"?
My OS is WinXP, and I use Active Perl 5.8.8.
H:\>perl -e "fork or do {system('calc'); exit}; $|=1; print 'hello' "
Does what I expect.
Xho
--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
.
- References:
- Prev by Date: Re: Memory leaks with SOAP Lite
- Next by Date: Re: Appending a character to a field
- Previous by thread: Re: How to continue process without waiting for the output of system()?
- Next by thread: Re: How to continue process without waiting for the output of system()?
- Index(es):
Relevant Pages
|